Skip to content

Commit 4cafe9f

Browse files
committed
[test] Make PeerManager's rng deterministic in tests
1 parent fecec3e commit 4cafe9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/util/setup_common.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ TestingSetup::TestingSetup(
256256
m_node.connman = std::make_unique<ConnmanTestMsg>(0x1337, 0x1337, *m_node.addrman, *m_node.netgroupman, Params()); // Deterministic randomness for tests.
257257
PeerManager::Options peerman_opts;
258258
ApplyArgsManOptions(*m_node.args, peerman_opts);
259+
peerman_opts.deterministic_rng = true;
259260
m_node.peerman = PeerManager::make(*m_node.connman, *m_node.addrman,
260261
m_node.banman.get(), *m_node.chainman,
261262
*m_node.mempool, peerman_opts);

0 commit comments

Comments
 (0)