Skip to content

Commit

Permalink
update rand (#304)
Browse files Browse the repository at this point in the history
Fixes #298

Signed-off-by: Marc-Antoine Perennou <[email protected]>
  • Loading branch information
Keruspe authored Feb 3, 2021
1 parent cbef837 commit fbcc301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bastion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ proptest = "0.10"
snap = "1.0"
# prime_numbers example
bastion-utils = { version = "0.3.2", path = "../bastion-utils" }
rand = "0.7.3"
rand = "0.8"
rayon = "1.3.1"
num_cpus = "1.13.0"
# hello_tokio example
Expand Down
2 changes: 1 addition & 1 deletion src/bastion/examples/prime_numbers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ mod prime_number {
// the closing parenthesiss means it won't reach the number.
// the maximum allowed value for maybe_prime is 9999.
use rand::Rng;
let mut maybe_prime = rand::thread_rng().gen_range(min_bound, max_bound);
let mut maybe_prime = rand::thread_rng().gen_range(min_bound..max_bound);
loop {
if is_prime(maybe_prime) {
return number_or_panic(maybe_prime);
Expand Down

0 comments on commit fbcc301

Please sign in to comment.