Skip to main content

Module xoshiro

Module xoshiro 

Source
Expand description

Xoshiro256++ implementation. Xoshiro256++ pseudo-random number generator.

Small-state (32 bytes) generator with a period of 2^256 - 1, designed by David Blackman and Sebastiano Vigna. See https://prng.di.unimi.it/xoshiro256plusplus.c.

Seeds are routed through SplitMix64 before priming the state, as recommended by the original authors, so low-entropy seeds (e.g. [0u8; 32] or [1u8; 32]) still yield well-distributed initial state.

Structsยง

Xoshiro256PlusPlus
Xoshiro256++ generator state.