diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-21 15:20:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-21 15:20:41 +0100 |
commit | a580a748b7c70b25a4c9b0cd4250919393c7c671 (patch) | |
tree | 36ca5f76e57f57920ab578e1ecf034103db2ce7a /src/libutil/util.h | |
parent | 89ab03e9b072862caf3c9727264836688a458f8d (diff) | |
download | rspamd-a580a748b7c70b25a4c9b0cd4250919393c7c671.tar.gz rspamd-a580a748b7c70b25a4c9b0cd4250919393c7c671.zip |
Use non-predictable hash seed to avoid collision attacks.
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r-- | src/libutil/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h index b3d7f42e0..6b8b7f3ad 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -460,4 +460,10 @@ void rspamd_array_free_hard (gpointer p); */ void rspamd_init_libs (void); +/** + * Returns some statically initialized random hash seed + * @return hash seed + */ +guint64 rspamd_hash_seed (void); + #endif |