Browse Source

Address review comments

v1.0.9-lin
Jack Grigg 7 years ago
parent
commit
bf6a138304
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 3
      src/random.cpp
  2. 2
      src/random.h

3
src/random.cpp

@ -19,7 +19,6 @@
#include <sys/time.h>
#endif
#include <openssl/err.h>
#include "sodium.h"
static inline int64_t GetPerformanceCounter()
@ -37,7 +36,7 @@ static inline int64_t GetPerformanceCounter()
void GetRandBytes(unsigned char* buf, size_t num)
{
randombytes_buf(buf, (size_t) num);
randombytes_buf(buf, num);
}
uint64_t GetRand(uint64_t nMax)

2
src/random.h

@ -12,7 +12,7 @@
#include <stdint.h>
/**
* Functions to gather random data via the libsodium PRNG
* Functions to gather random data via the libsodium CSPRNG
*/
void GetRandBytes(unsigned char* buf, size_t num);
uint64_t GetRand(uint64_t nMax);

Loading…
Cancel
Save