pub trait CbdSampler<M: Modulus> {
// Required method
fn sample_cbd<R: RngCore + CryptoRng>(
rng: &mut R,
eta: u8,
) -> Result<Polynomial<M>>;
}
Expand description
Trait for sampling polynomials from a Centered Binomial Distribution (CBD)
Required Methods§
Sourcefn sample_cbd<R: RngCore + CryptoRng>(
rng: &mut R,
eta: u8,
) -> Result<Polynomial<M>>
fn sample_cbd<R: RngCore + CryptoRng>( rng: &mut R, eta: u8, ) -> Result<Polynomial<M>>
Samples a polynomial with coefficients from CBD(eta)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.