From 0b5d7084cee77d143bbb2a4f03ee4ed9e570d61d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 5 Mar 2019 23:13:39 +0000 Subject: [PATCH] [Minor] Try to use static seed --- contrib/libucl/ucl_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5