Skip to main content

Module rng

Module rng 

Source
Expand description

Abstract entropy source for receipt IDs and DPoP nonces.

The kernel core never calls OsRng directly. Browser adapters route to crypto.getRandomValues() through getrandom’s js feature; WASI adapters route to the host’s random API; mobile adapters use SecRandomCopyBytes / /dev/urandom.

Structs§

NullRng
Entropy-free RNG that refuses to produce bytes.

Traits§

Rng
Trait boundary for cryptographically-secure random byte production.