Skip to main content

Module rng

Module rng 

Source
Expand description

Utilities for random number generation.

Structs§

Entropy
Fuzzer-provided entropy backing a FuzzRng.
FuzzRng
An RNG that expands a fuzzer byte slice into an infinite deterministic stream.
ScriptedRng
A bounded deterministic RNG that returns a caller-supplied sequence of u64 samples.
TestRng
A deterministic RNG for testing.

Functions§

mix64
Applies a SplitMix64-style finalizer to a deterministic input word.
sys_rng
Returns an infallible handle to the operating system’s entropy source.
test_rng
Returns a seeded RNG for deterministic testing.