aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
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