summaryrefslogtreecommitdiff
path: root/src/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/random.h')
-rw-r--r--src/random.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/random.h b/src/random.h
index ffaa69e..4b31abb 100644
--- a/src/random.h
+++ b/src/random.h
@@ -1,2 +1,18 @@
+struct Random;
+
+
int
urandom_bytes(const size_t n, uint8_t (*const addr)[]);
+
+int
+random_new(const struct Random **out);
+
+int
+random_free(const struct Random **r);
+
+int
+random_generate(
+ const struct Random *r,
+ const size_t length,
+ uint8_t (*const out)[]
+);