diff options
author | amjuarez <amjuarez@users.noreply.github.com> | 2013-11-15 02:28:17 +0400 |
---|---|---|
committer | amjuarez <amjuarez@users.noreply.github.com> | 2013-11-15 02:28:17 +0400 |
commit | 175d06e75e05aa4a42269dd048516e13b5bd585e (patch) | |
tree | 6828038a2d86174c6041f65187d7521c719606b3 /src/crypto/random.h | |
parent | Initial commit (diff) | |
download | monero-175d06e75e05aa4a42269dd048516e13b5bd585e.tar.xz |
crypto lib
Diffstat (limited to 'src/crypto/random.h')
-rw-r--r-- | src/crypto/random.h | 19 |
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 |