Skip to main content

Module random

Module random 

Source
Expand description

Caller-supplied randomness traits.

dcrypt intentionally provides no operating-system RNG. Applications choose and own their entropy source and pass it into every randomized operation.

Structs§

ChaCha20Rng
A deterministic ChaCha20 generator seeded entirely by its caller.
Error
An error returned by a fallible caller-provided randomness source.

Traits§

CryptoRng
Marker for generators suitable for cryptographic use.
RngCore
The byte-oriented randomness interface used by dcrypt.

Functions§

try_fill_bytes_zeroing_on_error
Fill a destination and clear it completely if the RNG reports failure.