aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 15:20:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 15:20:41 +0100
commita580a748b7c70b25a4c9b0cd4250919393c7c671 (patch)
tree36ca5f76e57f57920ab578e1ecf034103db2ce7a /src/libutil/logger.c
parent89ab03e9b072862caf3c9727264836688a458f8d (diff)
downloadrspamd-a580a748b7c70b25a4c9b0cd4250919393c7c671.tar.gz
rspamd-a580a748b7c70b25a4c9b0cd4250919393c7c671.zip
Use non-predictable hash seed to avoid collision attacks.
Diffstat (limited to 'src/libutil/logger.c')
-rw-r--r--src/libutil/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 65a85c753..fdfc79ba7 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -86,7 +86,7 @@ file_log_function (const gchar * log_domain, const gchar *function,
static inline guint32
rspamd_log_calculate_cksum (const gchar *message, size_t mlen)
{
- return XXH32 (message, mlen, 0xdeadbeef);
+ return XXH32 (message, mlen, rspamd_hash_seed ());
}
/*