aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2024-06-27 11:40:00 -0400
committerPieter Wuille <pieter@wuille.net>2024-07-01 12:39:53 -0400
commitddc184d999d7e1a87efaf6bcb222186f0dcd87ec (patch)
treeb5f108b5f86a71f952df306ef80fd6af9ee3d652 /src/node
parente2d1f84858485650ff743753ffa5c679f210a992 (diff)
random: get rid of GetRand by inlining
Diffstat (limited to 'src/node')
-rw-r--r--src/node/txreconciliation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/txreconciliation.cpp b/src/node/txreconciliation.cpp
index d62046daaa..e6e19c5756 100644
--- a/src/node/txreconciliation.cpp
+++ b/src/node/txreconciliation.cpp
@@ -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.