Skip to content

Commit 32e9af1

Browse files
committed
chore(deps): disable default features on statrs
This way we can relax the requirement on rand < 0.9.0 This also mean we need to use from_os_rng instead of from_entropy, since from_os_rng reads from urandom while from_entropy is the one with a hard requirement on rand < 0.9.0
1 parent fa2a8bb commit 32e9af1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
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]

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)