mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
tests: update test_random to take range
Fix 'error[E0061]: this function takes 1 argument but 2 arguments were supplied'.
This commit is contained in:
parent
771c9f5d9c
commit
1e0dc6c278
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ fn test_random() {
|
|||
// log distribution---higher probability for lower numbers
|
||||
let factor;
|
||||
loop {
|
||||
let next = rng.gen_range(0_f64, log_num_primes).exp2().floor() as usize;
|
||||
let next = rng.gen_range(0_f64..log_num_primes).exp2().floor() as usize;
|
||||
if next < NUM_PRIMES {
|
||||
factor = primes[next];
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue