]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Try to use static seed
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Mar 2019 23:13:39 +0000 (23:13 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Mar 2019 23:13:39 +0000 (23:13 +0000)
contrib/libucl/ucl_hash.c

index 352ae3a2bba4a1fa07607b58134f7618fca104eb..9019cbeeeccc9ad2f227c6c29b5c640b92378f81 100644 (file)
@@ -65,7 +65,7 @@ extern const guchar lc_map[256];
 static inline uint32_t
 ucl_hash_func (const ucl_object_t *o)
 {
-       return rspamd_cryptobox_fast_hash (o->key, o->keylen, ucl_hash_seed ());
+       return rspamd_cryptobox_fast_hash (o->key, o->keylen, 0xdeadbabe);
 }
 
 static inline int
@@ -94,7 +94,7 @@ ucl_hash_caseless_func (const ucl_object_t *o)
                } c;
                uint32_t pp;
        } u;
-       uint64_t h = ucl_hash_seed ();
+       uint64_t h = 0xdeadbabe;
 
        fp = len - leftover;