Skip to content

Make peer manager use a provided RNG instead of creating a new one each time#2025

Draft
ImplOfAnImpl wants to merge 1 commit intop2p_specify_min_core_versionfrom
p2p_pass_rng_to_peer_manager
Draft

Make peer manager use a provided RNG instead of creating a new one each time#2025
ImplOfAnImpl wants to merge 1 commit intop2p_specify_min_core_versionfrom
p2p_pass_rng_to_peer_manager

Conversation

@ImplOfAnImpl
Copy link
Contributor

In a bunch of places inside the peer manager where make_pseudo_rng() was called ad-hoc, the RNG is now passed from the outside, to make the potential test failures reproducible.

P.S. there are still some calls to make_pseudo_rng outside of p2p/src/peer_manager.

@ImplOfAnImpl ImplOfAnImpl force-pushed the p2p_pass_rng_to_peer_manager branch from 9659c1c to 12ba705 Compare March 12, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant