| Index: webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
|
| diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
|
| index ad1f5fd5bf0f3f4bb7f7f2d0367430d430923a66..5e66697215d4ca1644cb73ea519495fe22017561 100644
|
| --- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
|
| +++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
|
| @@ -94,33 +94,6 @@ class RateCounter {
|
| std::list<TimeSizePair> window_;
|
| };
|
|
|
| -Random::Random(uint32_t seed)
|
| - : a_(0x531FDB97 ^ seed),
|
| - b_(0x6420ECA8 + seed) {
|
| -}
|
| -
|
| -float Random::Rand() {
|
| - const float kScale = 1.0f / 0xffffffff;
|
| - float result = kScale * b_;
|
| - a_ ^= b_;
|
| - b_ += a_;
|
| - return result;
|
| -}
|
| -
|
| -int Random::Gaussian(int mean, int standard_deviation) {
|
| - // Creating a Normal distribution variable from two independent uniform
|
| - // variables based on the Box-Muller transform, which is defined on the
|
| - // interval (0, 1], hence the mask+add below.
|
| - const double kPi = 3.14159265358979323846;
|
| - const double kScale = 1.0 / 0x80000000ul;
|
| - double u1 = kScale * ((a_ & 0x7ffffffful) + 1);
|
| - double u2 = kScale * ((b_ & 0x7ffffffful) + 1);
|
| - a_ ^= b_;
|
| - b_ += a_;
|
| - return static_cast<int>(mean + standard_deviation *
|
| - sqrt(-2 * log(u1)) * cos(2 * kPi * u2));
|
| -}
|
| -
|
| Packet::Packet()
|
| : flow_id_(0), creation_time_us_(-1), send_time_us_(-1), payload_size_(0) {
|
| }
|
|
|