From 8cd70ad71f470d9f7e07ecde3736dd38f8716dd4 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 31 Jul 2026 11:26:20 +0400 Subject: [PATCH] Call random2 shuffle --- codexdht/private/eth/p2p/discoveryv5/routing_table.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codexdht/private/eth/p2p/discoveryv5/routing_table.nim b/codexdht/private/eth/p2p/discoveryv5/routing_table.nim index 5c2fc86..0b42a5b 100644 --- a/codexdht/private/eth/p2p/discoveryv5/routing_table.nim +++ b/codexdht/private/eth/p2p/discoveryv5/routing_table.nim @@ -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: