Make Makefile for Mac use clang options instead of old GCC options, and fix a nasty but obvious bug I introduced into Utils::getSecureRandom.

This commit is contained in:
Adam Ierymenko 2013-10-28 15:53:40 -04:00
parent 12b297a712
commit 7015017686
3 changed files with 15 additions and 4 deletions

View file

@ -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();