commit 0b5d708: [Minor] Try to use static seed

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Mar 5 23:14:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-03-05 23:13:39 +0000
URL: https://github.com/rspamd/rspamd/commit/0b5d7084cee77d143bbb2a4f03ee4ed9e570d61d (HEAD -> master)

[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;
 


More information about the Commits mailing list