pub type ChaCha<const ROUNDS: u32> = BlockPRNG<ChaChaStream<ROUNDS>>;
Expand description
The ChaCha
based PRNG. It is a cryptographically secure PRNG.
§Notes
- It is significantly slower than non-cryptographically secure PRNGS, e.g. around ~10x slower than LCG.
- The recommended
ROUNDS
value is 20.
Aliased Type§
pub struct ChaCha<const ROUNDS: u32> { /* private fields */ }