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 0015f2b commit 6a20535Copy full SHA for 6a20535
src/run_prim.rs
@@ -1787,8 +1787,7 @@ fn undo_regex(env: &mut Uiua) -> UiuaResult {
1787
}
1788
1789
thread_local! {
1790
- pub(crate) static RNG: RefCell<Xoshiro256Plus> = RefCell::new(Xoshiro256Plus::seed_from_u64(
1791
- 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())))
1792
1793
1794
/// Generate a random number, equivalent to [`Primitive::Rand`]
0 commit comments