pub struct XorShift64(/* private fields */);Expand description
xorshift64* — enough for stress loops; not for CapId entropy.
Implementations§
Source§impl XorShift64
impl XorShift64
pub fn new(seed: u64) -> Self
pub fn next_u64(&mut self) -> u64
pub fn next_u32(&mut self) -> u32
pub fn next_i64(&mut self) -> i64
pub fn next_i32(&mut self) -> i32
Sourcepub fn next_u32_inclusive(&mut self, lo: u32, hi: u32) -> u32
pub fn next_u32_inclusive(&mut self, lo: u32, hi: u32) -> u32
Inclusive lo..=hi when lo <= hi.
pub fn fill_bytes(&mut self, buf: &mut [u8])
Trait Implementations§
Source§impl Clone for XorShift64
impl Clone for XorShift64
Auto Trait Implementations§
impl Freeze for XorShift64
impl RefUnwindSafe for XorShift64
impl Send for XorShift64
impl Sync for XorShift64
impl Unpin for XorShift64
impl UnsafeUnpin for XorShift64
impl UnwindSafe for XorShift64
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