Structs§
- Prng
- A small, basic PRNG
implemented as an LCG.
Should never be used for security-critical things, but can be used as a high-performance
source of pseudo-randomness.
For secure randoms
system_random
is more appropriate.
Functions§
- system_
random - Fills the provided buffer with random bytes from /dev/random.