summaryrefslogtreecommitdiff
path: root/std/set.zc
diff options
context:
space:
mode:
Diffstat (limited to 'std/set.zc')
-rw-r--r--std/set.zc3
1 files changed, 2 insertions, 1 deletions
diff --git a/std/set.zc b/std/set.zc
index b5a2e58..1de43ac 100644
--- a/std/set.zc
+++ b/std/set.zc
@@ -3,8 +3,9 @@ import "./core.zc"
import "./option.zc"
raw {
+ extern size_t __zen_hash_seed;
size_t _set_hash(const void* data, size_t len) {
- size_t hash = 14695981039346656037UL;
+ size_t hash = __zen_hash_seed;
const unsigned char* bytes = (const unsigned char*)data;
for (size_t i = 0; i < len; i++) {
hash ^= bytes[i];