Remove Sized for RngCore
Co-authored-by: Weiliang Li <to.be.impressive@gmail.com>
This commit is contained in:
parent
d9ac7bd19b
commit
f3f8964001
|
@ -299,7 +299,7 @@ impl CurveProjective for Fr {
|
|||
type Scalar = Fr;
|
||||
type Engine = DummyEngine;
|
||||
|
||||
fn random<R: RngCore>(rng: &mut R) -> Self {
|
||||
fn random<R: RngCore + ?std::marker::Sized>(rng: &mut R) -> Self {
|
||||
<Fr as Field>::random(rng)
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ pub trait CurveProjective:
|
|||
type Affine: CurveAffine<Projective = Self, Scalar = Self::Scalar>;
|
||||
|
||||
/// Returns an element chosen uniformly at random using a user-provided RNG.
|
||||
fn random<R: RngCore>(rng: &mut R) -> Self;
|
||||
fn random<R: RngCore + ?std::marker::Sized>(rng: &mut R) -> Self;
|
||||
|
||||
/// Returns the additive identity.
|
||||
fn zero() -> Self;
|
||||
|
|
Loading…
Reference in New Issue