aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-28 01:01:59 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-28 01:01:59 +0000
commit074ac59f6f239256161a1de202bdd5551dfb26fd (patch)
treed3fe98f1475868707b46cc307395c9597716dc27 /src/util.h
parente47c31784d02da27c838f554993369bc692f8a05 (diff)
downloadrspamd-074ac59f6f239256161a1de202bdd5551dfb26fd.tar.gz
rspamd-074ac59f6f239256161a1de202bdd5551dfb26fd.zip
Use chacha20 for DNS id permutation.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index edcfa6122..c36587cab 100644
--- a/src/util.h
+++ b/src/util.h
@@ -455,4 +455,11 @@ gint rspamd_read_passphrase (gchar *buf, gint size, gint rwflag, gpointer key);
*/
void rspamd_prng_seed (void);
+/**
+ * Generate random bytes using the most suitable generator
+ * @param buf
+ * @param buflen
+ */
+void rspamd_random_bytes (gchar *buf, gsize buflen);
+
#endif