diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-28 15:53:40 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-28 15:53:40 -0400 |
| commit | 7015017686e8cd70421fc366e6c6848156c24197 (patch) | |
| tree | afc8a147b19d9e6f3a38daf4d579432975af6bd8 /node | |
| parent | 12b297a7127a752c1ffb51d768072572f035e8da (diff) | |
| download | infinitytier-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.cpp | 1 |
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(); |
