Module prngs

Module prngs 

Source
Expand description

Holds implementations of various PRNGs.

Structs§

GeneralLinearCongruentialGenerator128
The general linear congruential generator. Internally it holds u128 state and follows the next_state = A*old_state + C formula (over 128-bit modulo arithmetic).
SplitMix64
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.
DefaultChaCha
The recommended ChaCha PRNG with 20 rounds.
LinearCongruentialGenerator128
Alias for the default 128-bit GeneralLinearCongruentialGenerator128 with carefully chosen A and C.