diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/minizip/skipset.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/minizip/skipset.h b/contrib/minizip/skipset.h index f829b18..019b88d 100644 --- a/contrib/minizip/skipset.h +++ b/contrib/minizip/skipset.h | |||
@@ -231,7 +231,8 @@ void set_start(set_t *set) { | |||
231 | set_grow(set, set->head, 1, 1); // one link back to head for an empty set | 231 | set_grow(set, set->head, 1, 1); // one link back to head for an empty set |
232 | *(unsigned char *)&set->head->key = 137; // set id | 232 | *(unsigned char *)&set->head->key = 137; // set id |
233 | set->depth = 0; | 233 | set->depth = 0; |
234 | set_seed(&set->gen, (uint64_t)time(NULL) * (uint64_t)clock(), 0); | 234 | set_seed(&set->gen, ((uint64_t)set << 32) ^ |
235 | ((uint64_t)time(NULL) << 12) ^ clock(), 0); | ||
235 | set->ran = 1; | 236 | set->ran = 1; |
236 | } | 237 | } |
237 | 238 | ||