pub struct SplitMix64 { /* private fields */ }Expand description
SplitMix64 PRNG for seeded, deterministic generation.
This is fast and reproducible but not cryptographically secure, so it is
not the default. Use it when you need a fixed seed (e.g. tests via
word_with / hangul_with); the default word() / hangul() entry points
use OsRandom.
Implementations§
Source§impl SplitMix64
impl SplitMix64
Sourcepub fn from_entropy() -> Self
pub fn from_entropy() -> Self
Seed from the system clock. Non-deterministic, non-cryptographic.
Trait Implementations§
Source§impl RandomSource for SplitMix64
impl RandomSource for SplitMix64
Auto Trait Implementations§
impl Freeze for SplitMix64
impl RefUnwindSafe for SplitMix64
impl Send for SplitMix64
impl Sync for SplitMix64
impl Unpin for SplitMix64
impl UnsafeUnpin for SplitMix64
impl UnwindSafe for SplitMix64
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