FeltRng

Trait FeltRng 

Source
pub trait FeltRng: RngCore {
    // Required methods
    fn draw_element(&mut self) -> BaseElement;
    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§

Source

fn draw_element(&mut self) -> BaseElement

Draw, uniformly at random, a base field element.

Source

fn draw_word(&mut self) -> Word

Draw, uniformly at random, a Word.

Implementors§