From bf6a1383047465c1d042946096629cd6552db1bb Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 16 Jan 2017 17:38:04 +0100 Subject: [PATCH] Address review comments --- src/random.cpp | 3 +-- src/random.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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);