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§
- A
Rng
implementation that uses aHasher
to generate the random values. The implementation uses an internal counter to pass to the hasher for each iteration ofRng::next_u64
.
Traits§
- A simple PRNG trait for use within middleware.