We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bab803 commit 6d25cabCopy full SHA for 6d25cab
ci/big_rand/src/lib.rs
@@ -102,7 +102,7 @@ mod biguint {
102
let mut rng = R::from_seed(seed);
103
for (i, &s) in expected.iter().enumerate() {
104
let n: BigUint = s.parse().unwrap();
105
- let r = rng.gen_biguint((1 << i) + i);
+ let r = rng.gen_biguint((1 << i) + i as u64);
106
assert_eq!(n, r);
107
}
108
@@ -302,7 +302,7 @@ mod bigint {
302
303
304
let n: BigInt = s.parse().unwrap();
305
- let r = rng.gen_bigint((1 << i) + i);
+ let r = rng.gen_bigint((1 << i) + i as u64);
306
307
308
0 commit comments