Trait o1_utils::field_helpers::RandomField
source · 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