pub struct SystemVRand { /* private fields */ }Expand description
Faithful System V / old-POSIX-style rand():
next = next * 1103515245 + 12345; return (next >> 16) & 0x7fff;
This is the classic 15-bit libc generator that many systems exposed before higher-quality interfaces were common. It is a bad RNG.
Implementations§
Trait Implementations§
Source§impl Clone for SystemVRand
impl Clone for SystemVRand
Source§fn clone(&self) -> SystemVRand
fn clone(&self) -> SystemVRand
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 SystemVRand
impl Debug for SystemVRand
Auto Trait Implementations§
impl Freeze for SystemVRand
impl RefUnwindSafe for SystemVRand
impl Send for SystemVRand
impl Sync for SystemVRand
impl Unpin for SystemVRand
impl UnsafeUnpin for SystemVRand
impl UnwindSafe for SystemVRand
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