pub trait FeltRng: RngCore {
// Required methods
fn draw_element(&mut self) -> Felt;
fn draw_word(&mut self) -> Word;
}
Expand description
Pseudo-random element generator.
An instance can be used to draw, uniformly at random, base field elements as well as Words.
Required Methods§
sourcefn draw_element(&mut self) -> Felt
fn draw_element(&mut self) -> Felt
Draw, uniformly at random, a base field element.