From f1a662a4220b21400133dd984229f59a28b457fd Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Thu, 20 Dec 2012 10:21:31 +0000 Subject: [PATCH] ugh todo: seed per ht, not per hash --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 4a8b164..e323fb2 100644 --- a/util.c +++ b/util.c @@ -615,7 +615,7 @@ GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, size_t /* we use the crc table as seeds for the murmur hash :P */ size_t util_hthash(hash_table_t *ht, const char *key) { static size_t seed = 0; - register size_t hash = util_hthashfunc(ht, key, util_crc32_table[seed++]); + register size_t hash = util_hthashfunc(ht, key, util_crc32_table[seed]); /* reset seed */ if (seed >= sizeof(util_crc32_table) / sizeof(*util_crc32_table)) -- 2.39.2