Skip to main content

Module rng

Module rng 

Source
Expand description

OS CSPRNG access. Every key, salt, and nonce is drawn here; Capsule never seeds its own PRNG (SSoT: Cryptography — Primitives § Randomness).

Functions§

fill
Fill buf with cryptographically secure random bytes from the OS.
random_array
Draw a fresh N-byte random array (key, salt, or nonce prefix).