pub struct SplitMix64 { /* private fields */ }Expand description
SplitMix64 PRNG for seeding other generators
This is an ultra-fast PRNG specifically designed for seeding other PRNGs. It’s not suitable for cryptographic use but provides excellent quality for initialization purposes.
Implementations§
Source§impl SplitMix64
impl SplitMix64
Sourcepub fn fill_bytes(&mut self, dest: &mut [u8])
pub fn fill_bytes(&mut self, dest: &mut [u8])
Fill a buffer with random bytes
Sourcepub fn seed_xoshiro256(&mut self) -> [u64; 4]
pub fn seed_xoshiro256(&mut self) -> [u64; 4]
Generate a seed array for Xoshiro256+
Sourcepub fn seed_pcg64(&mut self) -> [u64; 2]
pub fn seed_pcg64(&mut self) -> [u64; 2]
Generate a seed array for PCG64
Trait Implementations§
Source§impl Clone for SplitMix64
impl Clone for SplitMix64
Source§fn clone(&self) -> SplitMix64
fn clone(&self) -> SplitMix64
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplitMix64
impl Debug for SplitMix64
Source§impl Rng for SplitMix64
impl Rng for SplitMix64
Source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill a byte buffer with random data
Auto Trait Implementations§
impl Freeze for SplitMix64
impl RefUnwindSafe for SplitMix64
impl Send for SplitMix64
impl Sync for SplitMix64
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> RngCore for Twhere
T: Rng,
impl<T> RngCore for Twhere
T: Rng,
Source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill a byte buffer with random data