mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-29 11:31:22 +00:00
Fix Field::random method declarations.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
@@ -317,7 +317,7 @@ impl PrimeField for Fs {
|
||||
}
|
||||
|
||||
impl Field for Fs {
|
||||
fn random<R: RngCore>(rng: &mut R) -> Self {
|
||||
fn random<R: RngCore + ?std::marker::Sized>(rng: &mut R) -> Self {
|
||||
loop {
|
||||
let mut tmp = {
|
||||
let mut repr = [0u64; 4];
|
||||
|
Reference in New Issue
Block a user