diff --git a/Cargo.lock b/Cargo.lock index 5ce95d6..b3d0a5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -300,7 +300,6 @@ dependencies = [ "log", "pretty_env_logger", "rand", - "rand_chacha", "strum", "strum_macros", ] diff --git a/chrs-lib/Cargo.toml b/chrs-lib/Cargo.toml index 6382879..e42c347 100644 --- a/chrs-lib/Cargo.toml +++ b/chrs-lib/Cargo.toml @@ -11,7 +11,6 @@ lazy_static = "1.4.0" rand = "0.8.5" strum = "0.24" strum_macros = "0.24" -rand_chacha = "0.3.1" instant = "0.1" [target.'cfg(target_arch = "wasm32")'.dependencies] diff --git a/chrs-lib/src/prng.rs b/chrs-lib/src/prng.rs index 30df264..1987fb4 100644 --- a/chrs-lib/src/prng.rs +++ b/chrs-lib/src/prng.rs @@ -1,11 +1,10 @@ use rand::prelude::*; -use rand_chacha::ChaCha20Rng; use std::cell::RefCell; thread_local! { - pub static PRNG: RefCell = RefCell::new(ChaCha20Rng::seed_from_u64(234239432)); + pub static PRNG: RefCell = RefCell::new(thread_rng()); } pub fn random_u64() -> u64 { PRNG.with(|rng| rng.borrow_mut().gen()) -} +} \ No newline at end of file