Expand description
Holds implementations of various PRNGs.
Structs§
- General
Linear Congruential Generator128 - The general linear congruential generator. Internally it holds
u128state and follows thenext_state = A*old_state + Cformula (over 128-bit modulo arithmetic). - Split
Mix64 - The Rust imlementation of
SplitMix64algorithm. It is good for generating seeds and good enough general purpose PRNG.
Type Aliases§
- ChaCha
- The
ChaChabased PRNG. It is a cryptographically secure PRNG. - Default
ChaCha - The recommended
ChaChaPRNG with 20 rounds. - Linear
Congruential Generator128 - Alias for the default 128-bit
GeneralLinearCongruentialGenerator128with carefully chosenAandC.