pub enum EntropyMode {
Deterministic {
key: [u8; 32],
},
Random,
}Expand description
How entropy is produced for strategies.
Variants§
Deterministic
Deterministic: entropy = HMAC-SHA256(key, category || '\0' || original).
Random
Random: entropy is drawn from OS CSPRNG on every call.
Trait Implementations§
Source§impl Debug for EntropyMode
impl Debug for EntropyMode
Auto Trait Implementations§
impl Freeze for EntropyMode
impl RefUnwindSafe for EntropyMode
impl Send for EntropyMode
impl Sync for EntropyMode
impl Unpin for EntropyMode
impl UnsafeUnpin for EntropyMode
impl UnwindSafe for EntropyMode
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