aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/random.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-05-14 22:08:10 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-05-15 00:05:59 +0100
commitd539be33590f7dfb0013187502744286f2959ee3 (patch)
tree8964a9107f7171cdbc0f490e581d92918462ed65 /src/crypto/random.h
parentMerge pull request #826 (diff)
downloadmonero-d539be33590f7dfb0013187502744286f2959ee3.tar.xz
crypto: make clear generate_random_bytes is not thread safe
And add a thread safe version to encourage proper use
Diffstat (limited to 'src/crypto/random.h')
-rw-r--r--src/crypto/random.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/random.h b/src/crypto/random.h
index 322b5bad1..b0d2303b6 100644
--- a/src/crypto/random.h
+++ b/src/crypto/random.h
@@ -32,4 +32,4 @@
#include <stddef.h>
-void generate_random_bytes(size_t n, void *result);
+void generate_random_bytes_not_thread_safe(size_t n, void *result);