aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/random.c
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-05-17 19:09:56 +0200
committerRiccardo Spagni <ric@spagni.net>2016-05-17 19:09:57 +0200
commita837c9cb0feeb7c8c4e616df64cbf650e38355f7 (patch)
tree504e043cc8156e1ec27d0c9c34bcefb0beb271f4 /src/crypto/random.c
parentMerge pull request #840 (diff)
parentcrypto: make clear generate_random_bytes is not thread safe (diff)
downloadmonero-a837c9cb0feeb7c8c4e616df64cbf650e38355f7.tar.xz
Merge pull request #842
d539be3 crypto: make clear generate_random_bytes is not thread safe (moneromooo-monero)
Diffstat (limited to 'src/crypto/random.c')
-rw-r--r--src/crypto/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/random.c b/src/crypto/random.c
index f8a50d850..6a9f63c12 100644
--- a/src/crypto/random.c
+++ b/src/crypto/random.c
@@ -113,7 +113,7 @@ INITIALIZER(init_random) {
#endif
}
-void generate_random_bytes(size_t n, void *result) {
+void generate_random_bytes_not_thread_safe(size_t n, void *result) {
#if !defined(NDEBUG)
assert(curstate == 1);
curstate = 2;