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:
parent
12b297a712
commit
7015017686
3 changed files with 15 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue