pub trait FieldRandom: Sized {
// Required method
fn random(rng: &mut (impl CryptoRng + Rng)) -> Self;
}Expand description
Trait for generating cryptographically secure random field elements.
Separated from FieldOps so that downstream code that doesn’t
need randomness is free of the rand dependency.
Required Methods§
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.