|
@@ -45,7 +45,7 @@ fn nanoseconds_with_random() -> u128 {
|
|
|
|
|
|
let ts = std::time::SystemTime::now()
|
|
let ts = std::time::SystemTime::now()
|
|
.duration_since(std::time::UNIX_EPOCH)
|
|
.duration_since(std::time::UNIX_EPOCH)
|
|
- .unwrap()
|
|
|
|
|
|
+ .expect("time")
|
|
.as_nanos();
|
|
.as_nanos();
|
|
|
|
|
|
ts.checked_add(random_number).unwrap_or(ts)
|
|
ts.checked_add(random_number).unwrap_or(ts)
|