diff options
author | pasta <pasta@dashboost.org> | 2022-01-31 19:29:33 +0700 |
---|---|---|
committer | pasta <pasta@dashboost.org> | 2022-03-23 17:36:33 -0500 |
commit | 3ae7791bcaa88f5c68592673b8926ee807242ce7 (patch) | |
tree | a3c9f0be42e9082a9047f26d4eecb65b441e39a8 /src/net_processing.cpp | |
parent | cea230eec40054a82fcd31fa97cf46f1585c4a35 (diff) | |
download | bitcoin-3ae7791bcaa88f5c68592673b8926ee807242ce7.tar.xz |
refactor: use Span in random.*
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 77efac3364..76f35439fa 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -4426,7 +4426,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; |