Skip to content

Use crypto/rand for dmsg server selection randomization#336

Merged
0pcom merged 1 commit intoskycoin:developfrom
0pcom:randomize-server-selection
Feb 7, 2026
Merged

Use crypto/rand for dmsg server selection randomization#336
0pcom merged 1 commit intoskycoin:developfrom
0pcom:randomize-server-selection

Conversation

@0pcom
Copy link
Collaborator

@0pcom 0pcom commented Feb 7, 2026

Replace global math/rand.Shuffle with a locally-seeded random generator using crypto/rand. This ensures each dmsg client connects to servers in a truly random order, preventing load imbalance when multiple clients start simultaneously.

@0pcom 0pcom force-pushed the randomize-server-selection branch from b82bc7c to f220d6a Compare February 7, 2026 17:18
Replace global math/rand.Shuffle with a locally-seeded random generator
using crypto/rand. This ensures each dmsg client connects to servers in
a truly random order, preventing load imbalance when multiple clients
start simultaneously.
@0pcom 0pcom force-pushed the randomize-server-selection branch from f220d6a to 3aa428c Compare February 7, 2026 17:57
@0pcom 0pcom merged commit 5c56ea7 into skycoin:develop Feb 7, 2026
3 checks passed
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