Struct merlin::TranscriptRng
source · pub struct TranscriptRng { /* private fields */ }
Expand description
An RNG providing synthetic randomness to the prover.
A TranscriptRng
is constructed from a Transcript
using a
TranscriptRngBuilder
; see its documentation for details on
how to construct one.
The transcript RNG construction is described in the Generating Randomness section of the Merlin website.
Trait Implementations§
source§impl RngCore for TranscriptRng
impl RngCore for TranscriptRng
source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill
dest
with random data. Read moreimpl CryptoRng for TranscriptRng
Auto Trait Implementations§
impl Freeze for TranscriptRng
impl RefUnwindSafe for TranscriptRng
impl Send for TranscriptRng
impl Sync for TranscriptRng
impl Unpin for TranscriptRng
impl UnwindSafe for TranscriptRng
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
source§impl<T> CryptoRngCore for T
impl<T> CryptoRngCore for T
source§fn as_rngcore(&mut self) -> &mut dyn RngCore
fn as_rngcore(&mut self) -> &mut dyn RngCore
Upcast to an
RngCore
trait object.