Index: webrtc/common_audio/ring_buffer_unittest.cc |
diff --git a/webrtc/common_audio/ring_buffer_unittest.cc b/webrtc/common_audio/ring_buffer_unittest.cc |
index 20fc0142796630d500f29779a41c01b1078e7233..a5b53b027a392941a970333c99f84c373f4c0452 100644 |
--- a/webrtc/common_audio/ring_buffer_unittest.cc |
+++ b/webrtc/common_audio/ring_buffer_unittest.cc |
@@ -58,8 +58,7 @@ |
printf("seed=%u\n", seed); |
srand(seed); |
for (int i = 0; i < kNumTests; i++) { |
- // rand_r is not supported on many platforms, so rand is used. |
- const int buffer_size = std::max(rand() % kMaxBufferSize, 1); // NOLINT |
+ const int buffer_size = std::max(rand() % kMaxBufferSize, 1); |
std::unique_ptr<int[]> write_data(new int[buffer_size]); |
std::unique_ptr<int[]> read_data(new int[buffer_size]); |
scoped_ring_buffer buffer(WebRtc_CreateBuffer(buffer_size, sizeof(int))); |
@@ -69,8 +68,8 @@ |
int write_element = 0; |
int read_element = 0; |
for (int j = 0; j < kNumOps; j++) { |
- const bool write = rand() % 2 == 0 ? true : false; // NOLINT |
- const int num_elements = rand() % buffer_size; // NOLINT |
+ const bool write = rand() % 2 == 0 ? true : false; |
+ const int num_elements = rand() % buffer_size; |
if (write) { |
const int buffer_available = buffer_size - buffer_consumed; |
ASSERT_EQ(static_cast<size_t>(buffer_available), |