Skip to main content

thread_rng_from_parent

Function thread_rng_from_parent 

Source
pub fn thread_rng_from_parent(
    msg: &str,
    parent: &Pcg64Mcg,
    child: DetTid,
) -> Pcg64Mcg
Expand description

Generate a new thread-local PRNG from the parent’s PRNG state, mixing in the new DetTid for some deterministic entropy. This ensures sequentially-spawned threads get distinct PRNG states.