Skip to main content

Module rng

Module rng 

Source
Expand description

Utilities for random number generation.

Structs§

FuzzRng
An RNG that expands a fuzzer byte slice into an infinite deterministic stream.
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.