Skip to content

Commit 77506f4

Browse files
committed
[net processing] Addr shuffle uses PeerManager's rng
1 parent a648dd7 commit 77506f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3714,7 +3714,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
37143714
const bool rate_limited = !pfrom.HasPermission(NetPermissionFlags::Addr);
37153715
uint64_t num_proc = 0;
37163716
uint64_t num_rate_limit = 0;
3717-
Shuffle(vAddr.begin(), vAddr.end(), FastRandomContext());
3717+
Shuffle(vAddr.begin(), vAddr.end(), m_rng);
37183718
for (CAddress& addr : vAddr)
37193719
{
37203720
if (interruptMsgProc)

0 commit comments

Comments
 (0)