Struct FastRng
pub struct FastRng { /* private fields */ }
Available on crate feature
random
only.Expand description
The OS provided fast random number generator.
This will generally be faster to produce random numbers than CryptoRng
.
Such an RNG can be requested by any component, and will always be seeded appropriately.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FastRng
impl RefUnwindSafe for FastRng
impl !Send for FastRng
impl !Sync for FastRng
impl Unpin for FastRng
impl UnwindSafe for FastRng
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