pub struct WindowsMsvcRand { /* private fields */ }Expand description
Faithful Windows CRT rand() as used by MSVCRT-family runtimes:
state = state * 214013 + 2531011; return (state >> 16) & 0x7fff;
This is the notoriously weak 15-bit generator associated with many classic Windows/MSVC-era programs. It is included as a bad historical control.
Implementations§
Trait Implementations§
Source§impl Clone for WindowsMsvcRand
impl Clone for WindowsMsvcRand
Source§fn clone(&self) -> WindowsMsvcRand
fn clone(&self) -> WindowsMsvcRand
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 WindowsMsvcRand
impl Debug for WindowsMsvcRand
Auto Trait Implementations§
impl Freeze for WindowsMsvcRand
impl RefUnwindSafe for WindowsMsvcRand
impl Send for WindowsMsvcRand
impl Sync for WindowsMsvcRand
impl Unpin for WindowsMsvcRand
impl UnsafeUnpin for WindowsMsvcRand
impl UnwindSafe for WindowsMsvcRand
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