Browse Source

Flood with a specific large number of connections

Vecna 5 months ago
parent
commit
9495c8cbda
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/simulation/censor.rs

+ 3 - 3
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;