diff --git a/evm/src/bn254_arithmetic.rs b/evm/src/bn254_arithmetic.rs index d1050560..c2f1e3d4 100644 --- a/evm/src/bn254_arithmetic.rs +++ b/evm/src/bn254_arithmetic.rs @@ -27,9 +27,9 @@ impl Fp { impl Distribution for Standard { fn sample(&self, rng: &mut R) -> Fp { - let (x0, x1, x2, x3) = rng.gen::<(u64, u64, u64, u64)>(); + let xs = rng.gen::<[u64; 4]>(); Fp { - val: U256([x0, x1, x2, x3]) % BN_BASE, + val: U256(xs) % BN_BASE, } } }