Module server::secure_rand
source · [−]Expand description
Tiny wrapper to make ring::rand::SystemRandom slightly more ergonomic to use.
Statics
RAND 🔒
The lazily initialized SecureRandom object. Only lazy in name: the
initialization is forced right near the start of this program’s main
,
before any other calls to this module.
Functions
Uses SecureRandom::fill to generate eight u8s, and then the u64 from those.