From f3f89640014f8a733133d24cfe48324997e90c8a Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Thu, 12 Mar 2020 15:32:44 -0600 Subject: [PATCH] Remove Sized for RngCore Co-authored-by: Weiliang Li --- bellman/src/groth16/tests/dummy_engine.rs | 2 +- group/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bellman/src/groth16/tests/dummy_engine.rs b/bellman/src/groth16/tests/dummy_engine.rs index b25e713..7311545 100644 --- a/bellman/src/groth16/tests/dummy_engine.rs +++ b/bellman/src/groth16/tests/dummy_engine.rs @@ -299,7 +299,7 @@ impl CurveProjective for Fr { type Scalar = Fr; type Engine = DummyEngine; - fn random(rng: &mut R) -> Self { + fn random(rng: &mut R) -> Self { ::random(rng) } diff --git a/group/src/lib.rs b/group/src/lib.rs index be78b2a..1c5d03e 100644 --- a/group/src/lib.rs +++ b/group/src/lib.rs @@ -22,7 +22,7 @@ pub trait CurveProjective: type Affine: CurveAffine; /// Returns an element chosen uniformly at random using a user-provided RNG. - fn random(rng: &mut R) -> Self; + fn random(rng: &mut R) -> Self; /// Returns the additive identity. fn zero() -> Self;