pub struct DeterministicRng { /* private fields */ }Expand description
Self-contained deterministic PRNG.
A 64-bit splitmix64 generator seeded from the vector’s seed field.
Same seed, same call sequence, same bytes — no platform entropy. The
stream is reproducible across machines, which is the whole point for
NIST vectors.
Not cryptographically secure — this exists to make protocol transcripts reproducible, not to be the production RNG. Schemes under test plug this in via their nonce/ephemeral-value hooks.
Implementations§
Trait Implementations§
Source§impl Clone for DeterministicRng
impl Clone for DeterministicRng
Source§fn clone(&self) -> DeterministicRng
fn clone(&self) -> DeterministicRng
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeterministicRng
impl RefUnwindSafe for DeterministicRng
impl Send for DeterministicRng
impl Sync for DeterministicRng
impl Unpin for DeterministicRng
impl UnsafeUnpin for DeterministicRng
impl UnwindSafe for DeterministicRng
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more