Skip to main content

Module rng

Module rng 

Source
Expand description

Utilities for random number generation.

Structs§

BytesRng
An RNG that reads from a byte buffer, falling back to a seeded RNG when exhausted.

Functions§

test_rng
Returns a seeded RNG for deterministic testing.
test_rng_seeded
Returns a seeded RNG with a custom seed for deterministic testing.