Function mc_oblivious_traits::rng_maker [−][src]
pub fn rng_maker<R: RngCore + CryptoRng + SeedableRng + 'static>(
source: R
) -> impl FnMut() -> R + 'static
A helper which takes an Rng implementing SeedableRng and returns a lambda
which returns newly seeded Rng’s with seeds derived from this one.
This matches the rng_maker
constraints in the above traits, and can be used
in tests when we want all the Rng’s to be seeded.