summaryrefslogtreecommitdiff
path: root/std/time.zc
diff options
context:
space:
mode:
Diffstat (limited to 'std/time.zc')
-rw-r--r--std/time.zc9
1 files changed, 9 insertions, 0 deletions
diff --git a/std/time.zc b/std/time.zc
index 72e611a..1191821 100644
--- a/std/time.zc
+++ b/std/time.zc
@@ -29,7 +29,16 @@ impl Duration {
struct Time {}
+extern size_t __zen_hash_seed;
+
impl Time {
+ fn randomize_hash() {
+ raw {
+ srand(time(NULL));
+ __zen_hash_seed ^= (size_t)rand();
+ }
+ }
+
fn now() -> U64 {
return _time_now_impl();
}