Merge 43bb106613 into merged_master (Bitcoin PR bitcoin/bitcoin#24213)

This commit is contained in:
James Dorfman 2024-08-01 18:35:08 +00:00
commit f86857195f
16 changed files with 33 additions and 31 deletions

View file

@ -4536,7 +4536,7 @@ void PeerManagerImpl::MaybeSendPing(CNode& node_to, Peer& peer, std::chrono::mic
if (pingSend) {
uint64_t nonce = 0;
while (nonce == 0) {
GetRandBytes((unsigned char*)&nonce, sizeof(nonce));
GetRandBytes({(unsigned char*)&nonce, sizeof(nonce)});
}
peer.m_ping_queued = false;
peer.m_ping_start = now;