[−][src]Struct nanorand::rand::wyrand::WyRand
An instance of the wyrand random number generator.
Seeded from the system entropy generator when available.
This generator is NOT cryptographically secure.
Implementations
impl WyRand
[src]
pub fn new() -> Self
[src]
Create a new WyRand
instance, seeding from the system's default source of entropy.
pub fn new_seed(seed: u64) -> Self
[src]
Create a new WyRand
instance, using a provided seed.
Trait Implementations
impl Clone for WyRand
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for WyRand
[src]
fn default() -> Self
[src]
Create a new WyRand
instance, seeding from the system's default source of entropy.
impl Display for WyRand
[src]
impl RNG for WyRand
[src]
type Output = [u8; 8]
The byte output that this RNG emits.
fn rand(&mut self) -> Self::Output
[src]
fn rand_with_seed(seed: &[u8]) -> Self::Output
[src]
fn reseed(&mut self, new_seed: &[u8])
[src]
fn generate<R: RandomGen<Self>>(&mut self) -> R
[src]
fn generate_range<R: RandomRange<Self>>(&mut self, lower: R, upper: R) -> R
[src]
fn shuffle<I, S: AsMut<[I]>>(&mut self, target: S)
[src]
Auto Trait Implementations
impl RefUnwindSafe for WyRand
impl Send for WyRand
impl Sync for WyRand
impl Unpin for WyRand
impl UnwindSafe for WyRand
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,