From 9495c8cbdadbc6a21f719ee5ba8531b92b0d1e6f Mon Sep 17 00:00:00 2001 From: Vecna Date: Thu, 6 Jun 2024 16:45:00 -0400 Subject: [PATCH] Flood with a specific large number of connections --- src/simulation/censor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simulation/censor.rs b/src/simulation/censor.rs index 643d884..05c5348 100644 --- a/src/simulation/censor.rs +++ b/src/simulation/censor.rs @@ -131,8 +131,8 @@ impl Censor { { let bridge = bridges.get_mut(fingerprint).unwrap(); - let mut rng = rand::thread_rng(); - let num_connections = rng.gen_range(1000..30000); + // A large number + let num_connections = 30000; // Make a bunch of connections to the bridge bridge.censor_flood(num_connections); @@ -145,7 +145,7 @@ impl Censor { let num_prs = if config.one_positive_report_per_cred { *cred_count } else { - rng.gen_range(1000..30000) + 30000 }; for _ in 0..num_prs { self.send_positive_report(config, &bridge.fingerprint).await;