pub struct BsdRandom { /* private fields */ }Expand description
BSD random() with the default 128-byte TYPE_3 state (deg=31, sep=3).
This is the classic Berkeley additive generator carried into glibc’s
random() and therefore Linux glibc rand(). It is much better than the
15-bit System V LCG, but it is still a weak historical userspace PRNG.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BsdRandom
impl RefUnwindSafe for BsdRandom
impl Send for BsdRandom
impl Sync for BsdRandom
impl Unpin for BsdRandom
impl UnsafeUnpin for BsdRandom
impl UnwindSafe for BsdRandom
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