]> source.dussan.org Git - rspamd.git/commitdiff
Use the same hash seed for urls as we need some static order
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Nov 2015 17:07:30 +0000 (17:07 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Nov 2015 17:07:30 +0000 (17:07 +0000)
src/libutil/util.c

index 3b95a1190ccbc54a42249d92845d7b56fce8d960..fee039c85f15a86dff286a7f9b4f49e53ea72132 100644 (file)
@@ -1375,7 +1375,7 @@ rspamd_url_hash (gconstpointer u)
        const struct rspamd_url *url = u;
        XXH64_state_t st;
 
-       XXH64_reset (&st, rspamd_hash_seed ());
+       XXH64_reset (&st, 0xdeadbabe);
 
        if (url->hostlen > 0) {
                XXH64_update (&st, url->host, url->hostlen);