pub type ChaCha<const ROUNDS: u32> = StreamPRNG<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
ROUNDSvalue is 20.
Aliased Type§
pub struct ChaCha<const ROUNDS: u32> { /* private fields */ }