refactor: update random number generation to use rand::make_rng() and upgrade rand to version 0.10

This commit is contained in:
Manuel Raimann
2026-02-10 09:30:39 +01:00
parent d7ad3f60db
commit 0e8fc82201
6 changed files with 12 additions and 18 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
use parking_lot::Mutex;
use rand::rngs::StdRng;
use rand::{Rng, SeedableRng};
use rand::{RngExt, SeedableRng};
use crate::distribution::Distribution;
use crate::param::ParamValue;
@@ -34,7 +34,7 @@ impl RandomSampler {
#[must_use]
pub fn new() -> Self {
Self {
rng: Mutex::new(StdRng::from_os_rng()),
rng: Mutex::new(rand::make_rng()),
}
}