summaryrefslogtreecommitdiffstats
path: root/src/random.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-25 04:59:35 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-25 04:59:35 +0200
commit5e72359e9a2f4008c408acbd3fe5d389e11a15b4 (patch)
tree5f1aede16a3b1e6985d4b7a309c6999416a638a3 /src/random.c
parentf34e51a1c3b98df2b7c8c7d7eb415a33f42f2d75 (diff)
downloadfastd-5e72359e9a2f4008c408acbd3fe5d389e11a15b4.tar
fastd-5e72359e9a2f4008c408acbd3fe5d389e11a15b4.zip
Completely document fastd.h
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;