Skip to main content

Module entropy

Module entropy 

Source
Expand description

Multi-source entropy mixing for defense-in-depth randomness. Multi-source entropy mixing for defense-in-depth randomness.

Structs§

EntropyHealthError
Error returned when RNG health check fails.

Functions§

check_entropy_health
Verifies the RNG produces non-constant, non-zero output.
has_rdrand
Returns whether RDRAND is available on this system.
random_bytes
Generates N bytes of mixed entropy.
random_bytes_mixed
Generates 32 bytes of mixed entropy from multiple sources.
try_random_bytes
Generates N bytes of mixed entropy.