Remove Sized for RngCore

Co-authored-by: Weiliang Li <to.be.impressive@gmail.com>
This commit is contained in:
Sean Bowe 2020-03-12 15:32:44 -06:00
parent d9ac7bd19b
commit f3f8964001
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
2 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ impl CurveProjective for Fr {
type Scalar = Fr; type Scalar = Fr;
type Engine = DummyEngine; 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) <Fr as Field>::random(rng)
} }

View File

@ -22,7 +22,7 @@ pub trait CurveProjective:
type Affine: CurveAffine<Projective = Self, Scalar = Self::Scalar>; type Affine: CurveAffine<Projective = Self, Scalar = Self::Scalar>;
/// Returns an element chosen uniformly at random using a user-provided RNG. /// 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. /// Returns the additive identity.
fn zero() -> Self; fn zero() -> Self;