Skip to content

Commit f1a389f

Browse files
committed
chore(deps): update rand to 0.9.0 and rand_distr to 0.5.0
1 parent 1b9de20 commit f1a389f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ bandwidth = "0.3.0"
2323
dyn-clone = { version = "1.0.10", optional = true }
2424
itertools = { version = "0.14.0", optional = true }
2525
once_cell = { version = "1.17.0", optional = true }
26-
rand = { version = "0.8.5", optional = true }
27-
rand_distr = { version = "0.4.3", optional = true }
26+
rand = { version = "0.9.0", optional = true }
27+
rand_distr = { version = "0.5.0", optional = true }
2828
serde = { version = "1.0", features = ["derive"], optional = true }
2929
typetag = { version = "0.2.5", optional = true }
3030
humantime-serde = { version = "1.1.1", optional = true }

src/model/solve_truncate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ mod tests {
257257
let mut rng = StdRng::seed_from_u64(42);
258258

259259
for _ in 0..1000 {
260-
let x = rng.gen_range(low..high);
260+
let x = rng.random_range(low..high);
261261
let eps = 5E-8 * (low + high);
262262
let delta1 = func(x + eps) - func(x);
263263
let delta2 = eps * deri(x + eps * 0.5);

0 commit comments

Comments
 (0)