Expand description
A backup RNG, independent of other known sources.
Not necessarily strong, but hopefully random enough to cause an attacker some trouble in the event of catastrophic failure.
A failure from this RNG does not cause a panic.
Re-exportsยง
use rand::TryRng;๐use rand_chacha::ChaCha20Rng;๐use reseeding_rng::ReseedingRng;๐use std::convert::Infallible;๐use std::sync::LazyLock;๐use std::sync::Mutex;๐use std::sync::MutexGuard;๐
Staticsยง
- JITTER_
BACKUP ๐ - Static instance of our BackupRng; None if we failed to construct one.
Functionsยง
- backup_
rng ๐ - Return a MutexGuard for our backup rng, or None if we couldnโt construct one.
- new_
backup_ ๐rng - Construct a new instance of our backup Rng; return None on failure.
Type Aliasesยง
- Backup
Rng ๐ - The type weโve chosen to use for our backup Rng.