Make more random

At least, make the stuff that doesn't need to be deterministic non-deterministic
This commit is contained in:
Michael Bradley 2025-05-19 21:23:58 -04:00
parent 245dfde91e
commit fc95857824
Signed by: MichaelBradley
SSH key fingerprint: SHA256:BKO2eI2LPsCbQS3n3i5SdwZTAIV3F1lHezR07qP+Ob0
4 changed files with 18 additions and 12 deletions

7
src/game/rng.rs Normal file
View file

@ -0,0 +1,7 @@
use rand::random;
use wyrand::WyRand;
/// Initialize a `WyRand` using `rand`'s thread-local rng
pub fn thread_rng() -> WyRand {
WyRand::new(random())
}