pub struct BufRng { /* private fields */ }
Expand description
Pulls random integers from the OS RNG device.
This object can be reused to create multiple random
numbers and uses an internal BufReader
around the
rng device file in order to keep from doing multiple
small reads.
Implementations§
Trait Implementations§
source§impl From<BufRng> for RandomString
impl From<BufRng> for RandomString
source§impl From<RandomString> for BufRng
impl From<RandomString> for BufRng
source§fn from(value: RandomString) -> Self
fn from(value: RandomString) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for BufRng
impl Send for BufRng
impl Sync for BufRng
impl Unpin for BufRng
impl UnwindSafe for BufRng
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