From: Vsevolod Stakhov Date: Tue, 5 Mar 2019 23:13:39 +0000 (+0000) Subject: [Minor] Try to use static seed X-Git-Tag: 1.9.0~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b5d7084cee77d143bbb2a4f03ee4ed9e570d61d;p=rspamd.git [Minor] Try to use static seed --- diff --git a/contrib/libucl/ucl_hash.c b/contrib/libucl/ucl_hash.c index 352ae3a2b..9019cbeee 100644 --- a/contrib/libucl/ucl_hash.c +++ b/contrib/libucl/ucl_hash.c @@ -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;