diff --git a/src/random.cpp b/src/random.cpp index 10b0e8c08..29faa32a7 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -19,7 +19,6 @@ #include #endif -#include #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) diff --git a/src/random.h b/src/random.h index 47b8868f5..8cec678ef 100644 --- a/src/random.h +++ b/src/random.h @@ -12,7 +12,7 @@ #include /** - * 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);