Expand description
Holds implementations of various PRNGs.
Structs§
- General
Linear Congruential Generator128 - The general linear congruential generator. Internally it holds
u128
state and follows thenext_state = A*old_state + C
formula (over 128-bit modulo arithmetic). - Split
Mix64 - The Rust imlementation of
SplitMix64
algorithm. It is good for generating seeds and good enough general purpose PRNG.
Type Aliases§
- ChaCha
- The
ChaCha
based PRNG. It is a cryptographically secure PRNG. - Default
ChaCha - The recommended
ChaCha
PRNG with 20 rounds. - Linear
Congruential Generator128 - Alias for the default 128-bit
GeneralLinearCongruentialGenerator128
with carefully chosenA
andC
.