Trait rand::reseeding::Reseeder
[−]
[src]
pub trait Reseeder<R: ?Sized> { fn reseed(&mut self, rng: &mut R) -> Result<(), Error>; }
Something that can be used to reseed an RNG via ReseedingRng
.
Note that implementations should support Clone
only if reseeding is
deterministic (no external entropy source). This is so that a ReseedingRng
only supports Clone
if fully deterministic.
Required Methods
fn reseed(&mut self, rng: &mut R) -> Result<(), Error>
Reseed the given RNG.
On error, this should just forward the source error; errors are handled by the caller.
Implementors
impl<R: Rng + NewRng> Reseeder<R> for ReseedWithNew