Merge pull request #4400
4eedf4fmake RandAddSeed() use OPENSSL_cleanse() (Philip Kaufmann)6354935move rand functions from util to new random.h/.cpp (Philip Kaufmann)001a53dadd GetRandBytes() as wrapper for RAND_bytes() (Philip Kaufmann)
This commit is contained in:
@@ -4381,7 +4381,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
|
||||
if (pingSend) {
|
||||
uint64_t nonce = 0;
|
||||
while (nonce == 0) {
|
||||
RAND_bytes((unsigned char*)&nonce, sizeof(nonce));
|
||||
GetRandBytes((unsigned char*)&nonce, sizeof(nonce));
|
||||
}
|
||||
pto->fPingQueued = false;
|
||||
pto->nPingUsecStart = GetTimeMicros();
|
||||
|
||||
Reference in New Issue
Block a user