Skip to content

Commit 268ae0e

Browse files
Merge pull request #1109 from onekey-sec/renovate/rand-0.x
chore(deps): update rust crate rand to 0.9.0
2 parents fa2a8bb + 5a75c5a commit 268ae0e

File tree

3 files changed

+31
-157
lines changed

3 files changed

+31
-157
lines changed

Cargo.lock

Lines changed: 28 additions & 154 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ bench = false
2020
log = "0.4.22"
2121
pyo3 = "0.25.0"
2222
pyo3-log = "0.12.0"
23-
statrs = "0.18.0"
23+
statrs = { version = "0.18.0", default-features = false }
2424
thiserror = "2.0.0"
2525

2626
[target.'cfg(target_os = "linux")'.dependencies]
@@ -29,7 +29,7 @@ landlock = "0.4.1"
2929
[dev-dependencies]
3030
approx = "0.5.0"
3131
criterion = "0.7.0"
32-
rand = "0.8.4"
32+
rand = "0.9.0"
3333

3434
[[bench]]
3535
harness = false

rust/src/math_tools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ mod tests {
123123
#[test]
124124
fn test_random_distribution() {
125125
let mut random_data = [0u8; 4096];
126-
StdRng::from_entropy().fill_bytes(&mut random_data);
126+
StdRng::from_os_rng().fill_bytes(&mut random_data);
127127
let chi_square_value = chi_square_probability(&random_data);
128128

129129
assert!(

0 commit comments

Comments
 (0)