Expand description
Support for random number generation
Structs§
- Random
Det - A generator for deterministic random bytes
Constants§
- DETERMINISTIC_
SEED_ LENGTH - The expected length of a seed for
fill_random_deterministic
Traits§
- KeyMaterial
- A trait for generating raw key material, generally cryptographically random bytes
- Rng
- Combined trait for CryptoRng and RngCore
Functions§
- default_
rng getrandom - Obtain an instance of the default random number generator
- fill_
random getrandom - Fill a mutable slice with random data using the system random number generator.
- fill_
random_ deterministic - Written to be compatible with randombytes_deterministic in libsodium, used to generate a deterministic symmetric encryption key
- random_
secret alloc - Create a new
SecretBytesinstance with random data.