diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-05 23:13:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-05 23:13:39 +0000 |
commit | 0b5d7084cee77d143bbb2a4f03ee4ed9e570d61d (patch) | |
tree | 56da4d871c6020bd4317ec0494f7f001a319eb88 /contrib/libucl | |
parent | 9bfff1d4775e19ce85272f61aecd64ce69b6a98a (diff) | |
download | rspamd-0b5d7084cee77d143bbb2a4f03ee4ed9e570d61d.tar.gz rspamd-0b5d7084cee77d143bbb2a4f03ee4ed9e570d61d.zip |
[Minor] Try to use static seed
Diffstat (limited to 'contrib/libucl')
-rw-r--r-- | contrib/libucl/ucl_hash.c | 4 |
1 files 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; |