Make more random
At least, make the stuff that doesn't need to be deterministic non-deterministic
This commit is contained in:
parent
245dfde91e
commit
fc95857824
4 changed files with 18 additions and 12 deletions
7
src/game/rng.rs
Normal file
7
src/game/rng.rs
Normal 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())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue