pub struct RngSource { /* fields omitted */ }
Expand description
Provides cryptographical unsecure random numbers
Creates a new unsecure random number source
Creates a new unsecure random number source. Do not use for
cryptography.
It returns an error if it couldn’t be read from /dev/urandom
Gets unsecure random numbers
Uses the available or newly loaded entropy to get a u8
.
This is not the cryptographical secure type of random!
It returns an error if not enough entropy was stored and
getting additional entropy failed.
Gets unsecure random numbers
Uses the available or newly loaded entropy to get a u32
.
This is not the cryptographical secure type of random!
It returns an error if not enough entropy was stored and
getting additional entropy failed.
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.