miden_crypto::rand

Trait FeltRng

source
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§

source

fn draw_element(&mut self) -> Felt

Draw, uniformly at random, a base field element.

source

fn draw_word(&mut self) -> Word

Draw, uniformly at random, a Word.

Implementors§