Skip to main content

Module rng

Module rng 

Source
Expand description

Randomness abstraction (RFC-020).

All secret generation goes through RandomSource so it can be made deterministic in tests and so that production failure propagates instead of silently degrading. The cardinal rule: RNG failure is fatal to the operation; no fallback value is ever produced (INV-3).

Structs§

SystemRandom
Production randomness backed by the platform CSPRNG via getrandom.

Traits§

RandomSource
A source of cryptographically secure random bytes.