Call random2 shuffle

This commit is contained in:
Arnaud 2026-07-31 11:26:20 +04:00
parent 1bb5236e26
commit 8cd70ad71f
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA

View File

@ -555,7 +555,7 @@ proc nodeToRevalidate*(r: RoutingTable): Node =
## Return a node to revalidate. The least recently seen node from a random
## bucket is selected.
var buckets = r.buckets
r.rng.shuffle(buckets)
random2.shuffle(r.rng, buckets)
# TODO: Should we prioritize less-recently-updated buckets instead? Could
# store a `now` Moment at setJustSeen or at revalidate per bucket.
for b in buckets: