pub fn generate_nonce(length: usize) -> Vec<u8> ⓘExpand description
Generate a random nonce for client-side use.
Uses SysRng (OS entropy; renamed from OsRng in rand 0.10) for
cryptographically secure random generation. SysRng is fallible-only
(TryRng) in rand 0.10; UnwrapErr adapts it to the infallible Rng
surface fill_bytes needs.