diff --git a/modules/congestion_controller/bbr/bbr_network_controller.cc b/modules/congestion_controller/bbr/bbr_network_controller.cc index 63c8e4cd53..7ca1d1450e 100644 --- a/modules/congestion_controller/bbr/bbr_network_controller.cc +++ b/modules/congestion_controller/bbr/bbr_network_controller.cc @@ -472,7 +472,7 @@ void BbrNetworkController::EnterProbeBandwidthMode(Timestamp now) { // Pick a random offset for the gain cycle out of {0, 2..7} range. 1 is // excluded because in that case increased gain and decreased gain would not // follow each other. - cycle_current_offset_ = random_.Rand(kGainCycleLength - 1); + cycle_current_offset_ = random_.Rand(kGainCycleLength - 2); if (cycle_current_offset_ >= 1) { cycle_current_offset_ += 1; }