core: Seed RNG with timestamp

This commit is contained in:
Mike Welsh 2020-11-25 23:46:27 -08:00
parent 9501ff06b0
commit aff34a4233
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ impl Player {
view_matrix: Default::default(),
inverse_view_matrix: Default::default(),
rng: SmallRng::from_seed([0u8; 16]), // TODO(Herschel): Get a proper seed on all platforms.
rng: SmallRng::seed_from_u64(chrono::Utc::now().timestamp_millis() as u64),
gc_arena: GcArena::new(ArenaParameters::default(), |gc_context| {
GcRoot(GcCell::allocate(