1
Fork 0

replace manual time convertions with std ones

This commit is contained in:
klensy 2024-11-02 15:08:53 +03:00
parent db034cee00
commit be3a635fe7
2 changed files with 7 additions and 13 deletions

View file

@ -1098,7 +1098,7 @@ impl<D: Deps> CurrentDepGraph<D> {
use std::time::{SystemTime, UNIX_EPOCH};
let duration = SystemTime::now().duration_since(UNIX_EPOCH).unwrap();
let nanos = duration.as_secs() * 1_000_000_000 + duration.subsec_nanos() as u64;
let nanos = duration.as_nanos();
let mut stable_hasher = StableHasher::new();
nanos.hash(&mut stable_hasher);
let anon_id_seed = stable_hasher.finish();