Fix Field::random method declarations.
This commit is contained in:
parent
2279da422c
commit
2d8033ef95
|
@ -22,7 +22,7 @@ impl fmt::Display for Fr {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Field 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)
|
Fr(Wrapping(rng.next_u32()) % MODULUS_R)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue