Address review comments
This commit is contained in:
parent
207924a1d5
commit
bf6a138304
|
@ -19,7 +19,6 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <openssl/err.h>
|
|
||||||
#include "sodium.h"
|
#include "sodium.h"
|
||||||
|
|
||||||
static inline int64_t GetPerformanceCounter()
|
static inline int64_t GetPerformanceCounter()
|
||||||
|
@ -37,7 +36,7 @@ static inline int64_t GetPerformanceCounter()
|
||||||
|
|
||||||
void GetRandBytes(unsigned char* buf, size_t num)
|
void GetRandBytes(unsigned char* buf, size_t num)
|
||||||
{
|
{
|
||||||
randombytes_buf(buf, (size_t) num);
|
randombytes_buf(buf, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t GetRand(uint64_t nMax)
|
uint64_t GetRand(uint64_t nMax)
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <stdint.h>
|
#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);
|
void GetRandBytes(unsigned char* buf, size_t num);
|
||||||
uint64_t GetRand(uint64_t nMax);
|
uint64_t GetRand(uint64_t nMax);
|
||||||
|
|
Loading…
Reference in New Issue