Skip to main content

Module rng

Module rng 

Source
Expand description

Cryptographic random number generation trait and OS-backed implementation. Minimal cryptographic RNG trait and OS-backed implementation.

Provides the CryptoRng trait used by ML-DSA for key generation and hedged signing, along with OsRng, a simple implementation backed by the operating system’s entropy source.

Structs§

OsRng
OS-backed cryptographic RNG reading from /dev/urandom.

Traits§

CryptoRng
Trait for cryptographic random byte generation.