| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include "net/curvecp/rtt_and_send_rate_calculator.h" | 7 #include "net/curvecp/rtt_and_send_rate_calculator.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 send_rate_ /= 2; | 163 send_rate_ /= 2; |
| 164 last_doubling_time_ = last_sample_time_; | 164 last_doubling_time_ = last_sample_time_; |
| 165 } | 165 } |
| 166 | 166 |
| 167 // returns a random number from 0 to val-1. | 167 // returns a random number from 0 to val-1. |
| 168 int32 RttAndSendRateCalculator::randommod(int32 val) { | 168 int32 RttAndSendRateCalculator::randommod(int32 val) { |
| 169 return rand() % val; | 169 return rand() % val; |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace net | 172 } // namespace net |
| OLD | NEW |