pub struct Challenge { /* private fields */ }Expand description
Deterministic byte stream SHA-256(seed ‖ u32be(ctr)), consumed sequentially.
Implementations§
Source§impl Challenge
impl Challenge
pub fn bytes(&mut self, n: usize) -> Vec<u8> ⓘ
Sourcepub fn bits(&mut self, n: u32) -> BoxedUint
pub fn bits(&mut self, n: u32) -> BoxedUint
Uniform integer below 2^n (precision n rounded up to whole limbs, at least 64).
Auto Trait Implementations§
impl Freeze for Challenge
impl RefUnwindSafe for Challenge
impl Send for Challenge
impl Sync for Challenge
impl Unpin for Challenge
impl UnsafeUnpin for Challenge
impl UnwindSafe for Challenge
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