Skip to main content

Module rng

Module rng 

Source
Expand description

Minimal cryptographic RNG trait and OS-backed implementation. Minimal cryptographic RNG trait and OS-backed implementation.

SLH-DSA requires a source of cryptographic randomness for key generation and hedged signing. This module provides a simple trait and a default 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.