pub struct SeededRng { /* private fields */ }Expand description
The Rng of production code: SplitMix64, seeded once.
new takes the seed, which makes the whole sequence
reproducible: the same seed always yields the same values in the same order.
Default takes its seed from the entropy the standard library uses to seed
HashMap, which is best effort, unpredictable in practice but neither
reproducible nor guaranteed by anything.
SplitMix64 is a fast statistical generator, not a cryptographic one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SeededRng
impl RefUnwindSafe for SeededRng
impl Send for SeededRng
impl Sync for SeededRng
impl Unpin for SeededRng
impl UnwindSafe for SeededRng
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