diff --git a/Cargo.toml b/Cargo.toml index 0e8a2e6c2..6f8cc2686 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ num-bigint = { version = "0.3.0", default-features = false, features = ["std"] } num-integer = "0.1.42" num-rational = { version = "0.3.0", default-features = false } num-traits = "^0.2.0" -rand = "0.7.0" +rand = "0.8.0" structopt = { version = "0.3.9", features = ["wrap_help"], optional = true } deunicode = { version = "1.0", optional = true } hrx-get = { version = "0.1", optional = true } diff --git a/src/functions/math.rs b/src/functions/math.rs index 4658ec184..7f895c7fa 100644 --- a/src/functions/math.rs +++ b/src/functions/math.rs @@ -307,5 +307,5 @@ fn find_extreme(v: &[Value], pref: Ordering) -> &Value { static NULL_VALUE: Value = Value::Null; fn intrand(lim: isize) -> isize { - thread_rng().gen_range(0, lim) + thread_rng().gen_range(0..lim) }