Module rng
Expand description
PRNG utilities for middleware.
This module provides a generic Rng trait and a HasherRng that
implements the trait based on RandomState or any other Hasher.
Structs§
- Hasher
Rng - A
Rngimplementation that uses aHasherto generate the random values. The implementation uses an internal counter to pass to the hasher for each iteration ofRng::next_u64.