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 7c4a6e7 commit 2ed508bCopy full SHA for 2ed508b
benches/prime_benches.rs
@@ -25,7 +25,7 @@ fn benchmarks(c: &mut Criterion) {
25
primality_testing.throughput(Throughput::Elements(N));
26
primality_testing.bench_function(format!("is_prime on {N} random numbers"), |b| {
27
b.iter_batched(
28
- || (0..N).map(|_| rng.gen()).collect::<Vec<u64>>(),
+ || (0..N).map(|_| rng.random()).collect::<Vec<u64>>(),
29
|data| {
30
for &number in &data {
31
black_box(is_prime(number));
0 commit comments