pub trait Samplable {
    // Required method
    fn random<R>(rng: &mut R) -> Self
       where R: RngCore;
}

Required Methods§

source

fn random<R>(rng: &mut R) -> Self
where R: RngCore,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Samplable for Scalar

source§

fn random<R>(rng: &mut R) -> Scalar
where R: RngCore,

source§

impl<E> Samplable for RustCryptoScalar<E>
where E: CurveArithmetic,

source§

fn random<R>(rng: &mut R) -> RustCryptoScalar<E>
where R: RngCore,

Implementors§

source§

impl<E: Curve> Samplable for NonZero<Scalar<E>>

source§

impl<E: Curve> Samplable for generic_ec::Scalar<E>

source§

impl<E: Curve> Samplable for SecretScalar<E>