Expand description
PRNG utilities for tower middleware.
This module provides a generic Rng trait and a HasherRng that
implements the trait based on RandomState or any other Hasher.
These utilities replace tower’s internal usage of rand with these smaller,
more lightweight methods. Most of the implementations are extracted from
their corresponding rand implementations.
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.