summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-28 15:53:40 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-28 15:53:40 -0400
commit7015017686e8cd70421fc366e6c6848156c24197 (patch)
treeafc8a147b19d9e6f3a38daf4d579432975af6bd8 /node
parent12b297a7127a752c1ffb51d768072572f035e8da (diff)
downloadinfinitytier-7015017686e8cd70421fc366e6c6848156c24197.tar.gz
infinitytier-7015017686e8cd70421fc366e6c6848156c24197.zip
Make Makefile for Mac use clang options instead of old GCC options, and fix a nasty but obvious bug I introduced into Utils::getSecureRandom.
Diffstat (limited to 'node')
-rw-r--r--node/Utils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp
index 7e82df2a..c565d8c4 100644
--- a/node/Utils.cpp
+++ b/node/Utils.cpp
@@ -196,6 +196,7 @@ void Utils::getSecureRandom(void *buf,unsigned int bytes)
// A Salsa20 instance is used to mangle whatever our base
// random source happens to be.
if (!randInitialized) {
+ randInitialized = true;
memset(randbuf,0,sizeof(randbuf));
char s20key[33];
uint64_t s20iv = now();