We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ca97d commit 418a93dCopy full SHA for 418a93d
src/run_prim.rs
@@ -1773,8 +1773,7 @@ fn undo_regex(env: &mut Uiua) -> UiuaResult {
1773
}
1774
1775
thread_local! {
1776
- pub(crate) static RNG: RefCell<Xoshiro256Plus> = RefCell::new(Xoshiro256Plus::seed_from_u64(
1777
- SystemTime::now().duration_since(UNIX_EPOCH).map(|t|t.as_micros()).unwrap_or(42) as u64));
+ pub(crate) static RNG: RefCell<Xoshiro256Plus> = RefCell::new(Xoshiro256Plus::seed_from_u64(f64::to_bits(crate::now())))
1778
1779
1780
/// Generate a random number, equivalent to [`Primitive::Rand`]
0 commit comments