Skip to main content

stream

Function stream 

Source
pub fn stream(seed: u64, index: u64) -> ParticleRng
Expand description

Random stream for particle index of the run with the given seed.

The 64-bit seed forms the ChaCha key (little-endian, zero padded) and the particle index is the 64-bit ChaCha stream identifier. The result depends only on (seed, index).