From 7015017686e8cd70421fc366e6c6848156c24197 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 28 Oct 2013 15:53:40 -0400 Subject: Make Makefile for Mac use clang options instead of old GCC options, and fix a nasty but obvious bug I introduced into Utils::getSecureRandom. --- node/Utils.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'node') 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(); -- cgit v1.2.3