From a7fb12bd729466395dcb8eca5cbc167f12ff83c0 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 12 Jun 2023 22:42:22 -0700 Subject: [PATCH] less random is fine for shuffling --- web3_proxy/src/rpcs/one.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 0026f31e..937bd82a 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -269,12 +269,12 @@ impl Web3Rpc { pub fn shuffle_for_load_balancing_on( &self, max_block: Option, - ) -> ((bool, u32, Reverse), u32) { + ) -> ((bool, u32, Reverse), u8) { let sort_on = self.sort_on(max_block); let mut rng = nanorand::tls_rng(); - let r = rng.generate::(); + let r = rng.generate::(); (sort_on, r) }