pub enum Random {
System(System),
Zero(Zero),
Xoshiro(Xoshiro),
ChaCha20(ChaCha20),
}Expand description
Randomness source
Applications using Passgen should allow the user to configure the source of randomness by specifying this value. It defaults to using the System randomness generator, which is non-deterministic.
Variants§
Implementations§
Trait Implementations§
Source§impl RandomSource for Random
impl RandomSource for Random
impl StructuralPartialEq for Random
Auto Trait Implementations§
impl Freeze for Random
impl RefUnwindSafe for Random
impl Send for Random
impl Sync for Random
impl Unpin for Random
impl UnwindSafe for Random
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