aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/random.h')
-rw-r--r--src/crypto/random.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/crypto/random.h b/src/crypto/random.h
new file mode 100644
index 000000000..b37963c0f
--- /dev/null
+++ b/src/crypto/random.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <stddef.h>
+
+#if defined(__cplusplus)
+#include <type_traits>
+
+namespace crypto {
+
+ extern "C" {
+#endif
+
+ void init_random(void);
+ void generate_random_bytes(size_t n, void *result);
+
+#if defined(__cplusplus)
+ }
+}
+#endif \ No newline at end of file