Skip to main content

RngFactory

Trait RngFactory 

Source
pub trait RngFactory<F: Field> {
    // Required method
    fn new_rng(&self) -> Box<dyn Rng<F>>;
}
Expand description

Responsible for constructing new Rngs.

Required Methods§

Source

fn new_rng(&self) -> Box<dyn Rng<F>>

Construct a new Rng

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§