Index: net/quic/core/congestion_control/bbr_sender.cc |
diff --git a/net/quic/core/congestion_control/bbr_sender.cc b/net/quic/core/congestion_control/bbr_sender.cc |
index ead7e0de80f1a3f12dbe0e152b157aa4c709d28c..623cfb78337ba35687af39a48cccec3a37ad2e64 100644 |
--- a/net/quic/core/congestion_control/bbr_sender.cc |
+++ b/net/quic/core/congestion_control/bbr_sender.cc |
@@ -302,8 +302,7 @@ void BbrSender::EnterProbeBandwidthMode(QuicTime 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_->RandUint64() % (sizeof(kGainCycleLength) - 1); |
+ cycle_current_offset_ = random_->RandUint64() % (kGainCycleLength - 1); |
if (cycle_current_offset_ >= 1) { |
cycle_current_offset_ += 1; |
} |