Skip to main content

spawn_generators

Function spawn_generators 

Source
pub fn spawn_generators<B: BitGenerator + Clone>(
    parent: &mut Generator<B>,
    n: usize,
) -> Result<Vec<Generator<B>>, FerrayError>
Expand description

Spawn n independent child generators from this generator.

Uses jump() if available (Xoshiro256**), otherwise uses stream() (Philox), otherwise falls back to seeding from the parent generator’s output.

§Errors

Returns FerrayError::InvalidValue if n is zero.