pub trait RandomField<F> {
// Required methods
fn gen_field_with_bits(&mut self, bits: usize) -> F;
fn gen(&mut self, input: Option<F>, bits: Option<usize>) -> F;
}Expand description
Helper to generate random field elements
Required Methods§
Sourcefn gen_field_with_bits(&mut self, bits: usize) -> F
fn gen_field_with_bits(&mut self, bits: usize) -> F
Generates a random field element of up to a given number of bits
Implementations on Foreign Types§
Source§impl<F: PrimeField> RandomField<F> for StdRng
Available on crate feature std only.
impl<F: PrimeField> RandomField<F> for StdRng
Available on crate feature
std only.