Module backup

Source
Available on non-WebAssembly only.
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.

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§

BackupRng 🔒
The type we’ve chosen to use for our backup Rng.