diff options
author | Pieter Wuille <pieter@wuille.net> | 2024-06-27 11:40:00 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2024-07-01 12:39:53 -0400 |
commit | ddc184d999d7e1a87efaf6bcb222186f0dcd87ec (patch) | |
tree | b5f108b5f86a71f952df306ef80fd6af9ee3d652 /src/txrequest.cpp | |
parent | e2d1f84858485650ff743753ffa5c679f210a992 (diff) | |
download | bitcoin-ddc184d999d7e1a87efaf6bcb222186f0dcd87ec.tar.xz |
random: get rid of GetRand by inlining
Diffstat (limited to 'src/txrequest.cpp')
-rw-r--r-- | src/txrequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txrequest.cpp b/src/txrequest.cpp index ce5fbd9a7f..6338ccb118 100644 --- a/src/txrequest.cpp +++ b/src/txrequest.cpp @@ -113,8 +113,8 @@ class PriorityComputer { const uint64_t m_k0, m_k1; public: explicit PriorityComputer(bool deterministic) : - m_k0{deterministic ? 0 : GetRand(0xFFFFFFFFFFFFFFFF)}, - m_k1{deterministic ? 0 : GetRand(0xFFFFFFFFFFFFFFFF)} {} + m_k0{deterministic ? 0 : FastRandomContext().rand64()}, + m_k1{deterministic ? 0 : FastRandomContext().rand64()} {} Priority operator()(const uint256& txhash, NodeId peer, bool preferred) const { |