Skip to content

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

Merged
ImplOfAnImpl merged 1 commit intomasterfrom
p2p_pass_rng_to_peer_manager
Mar 27, 2026
Merged

Make peer manager use a provided RNG instead of creating a new one each time#2025
ImplOfAnImpl merged 1 commit intomasterfrom
p2p_pass_rng_to_peer_manager

Conversation

@ImplOfAnImpl
Copy link
Copy Markdown
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
@ImplOfAnImpl ImplOfAnImpl marked this pull request as ready for review March 13, 2026 09:37
Base automatically changed from p2p_specify_min_core_version to master March 27, 2026 10:33
@ImplOfAnImpl ImplOfAnImpl merged commit e6b8948 into master Mar 27, 2026
20 checks passed
@ImplOfAnImpl ImplOfAnImpl deleted the p2p_pass_rng_to_peer_manager branch March 27, 2026 10:33
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.

2 participants