summaryrefslogtreecommitdiffstats
path: root/src/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/random.c')
-rw-r--r--src/random.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/random.c b/src/random.c
index d8c06d2..71a3ad1 100644
--- a/src/random.c
+++ b/src/random.c
@@ -29,6 +29,9 @@
#include <sys/stat.h>
+/**
+ Provides a given amount of cryptographic random data
+*/
void fastd_random_bytes(void *buffer, size_t len, bool secure) {
int fd;
size_t read_bytes = 0;