Skip to main content

PutRNGstate

Function PutRNGstate 

Source
pub unsafe fn PutRNGstate()
Expand description

Restore the RNG state to R’s global state.

Must be called after using unif_rand(), norm_rand(), etc. to ensure R’s .Random.seed is updated. Checked wrapper for PutRNGstate. Calls PutRNGstate_unchecked inside with_r_thread, which panics off R’s main thread. Generated from source location line 1608, column 12. Generated from source file miniextendr-api/src/sys.rs.