From 9c263ca6796ebe627547466434a95bdcb2785af4 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Mon, 11 Jan 2021 09:14:50 +0100 Subject: [PATCH] Upgrade rand to 0.8 --- Cargo.toml | 2 +- src/functions/math.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }