random: get rid of GetRand by inlining

This commit is contained in:
Pieter Wuille committed 2024-07-01 12:39:53 -04:00
1 parent e2d1f84858
commit ddc184d999
14 files changed
+40 -49

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ public:
LOCK(m_txreconciliation_mutex);
LogPrintLevel(BCLog::TXRECONCILIATION, BCLog::Level::Debug, "Pre-register peer=%d\n", peer_id);
const uint64_t local_salt{GetRand(UINT64_MAX)};
const uint64_t local_salt{FastRandomContext().rand64()};
// We do this exactly once per peer (which are unique by NodeId, see GetNewNodeId) so it's
// safe to assume we don't have this record yet.