Skip to content

Commit

Permalink
Fix Field::random method declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebfull authored and str4d committed Apr 30, 2020
1 parent 2279da4 commit 2d8033e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groth16/tests/dummy_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl fmt::Display for Fr {
}

impl Field for Fr {
fn random<R: RngCore>(rng: &mut R) -> Self {
fn random<R: RngCore + ?std::marker::Sized>(rng: &mut R) -> Self {
Fr(Wrapping(rng.next_u32()) % MODULUS_R)
}

Expand Down

0 comments on commit 2d8033e

Please sign in to comment.