aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/random.h
diff options
context:
space:
mode:
authoramjuarez <amjuarez@users.noreply.github.com>2013-11-15 02:28:17 +0400
committeramjuarez <amjuarez@users.noreply.github.com>2013-11-15 02:28:17 +0400
commit175d06e75e05aa4a42269dd048516e13b5bd585e (patch)
tree6828038a2d86174c6041f65187d7521c719606b3 /src/crypto/random.h
parentInitial commit (diff)
downloadmonero-175d06e75e05aa4a42269dd048516e13b5bd585e.tar.xz
crypto lib
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