[−][src]Trait fancy_garbling::util::RngExt
Extra Rng functionality, useful for fancy-garbling
.
Provided methods
fn gen_bool(&mut self) -> bool
Randomly generate a bool
.
fn gen_u16(&mut self) -> u16
Randomly generate a u16
.
fn gen_u32(&mut self) -> u32
Randomly generate a u32
.
fn gen_u64(&mut self) -> u64
Randomly generate a u64
.
fn gen_usize(&mut self) -> usize
Randomly generate a usize
.
fn gen_u128(&mut self) -> u128
Randomly generate a u128
.
fn gen_block(&mut self) -> Block
Randomly generate a Block
.
fn gen_usable_block(&mut self, modulus: u16) -> Block
Randomly generate a valid Block
.
fn gen_prime(&mut self) -> u16
Randomly generate a prime (among the set of supported primes).
fn gen_modulus(&mut self) -> u16
Randomly generate a (supported) modulus.
fn gen_usable_composite_modulus(&mut self) -> u128
Randomly generate a valid composite modulus.
fn gen_usable_factors(&mut self) -> Vec<u16>
Randomly generate a vector of valid factor