Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: unit_test/color_test.cc

Issue 1361813002: replace random with fastrand (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: remove win32 version of random Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | unit_test/compare_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unit_test/color_test.cc
diff --git a/unit_test/color_test.cc b/unit_test/color_test.cc
index 7716f958ea11fe8936d63947f8b2f5e50931405a..d3fda0d4dcd7faa0b82b74c70997fad0f59f9dff 100644
--- a/unit_test/color_test.cc
+++ b/unit_test/color_test.cc
@@ -66,7 +66,7 @@ TEST_F(libyuvTest, TESTNAME) { \
uint8* p = orig_y; \
for (int y = 0; y < benchmark_height_ - HS1; y += HS) { \
for (int x = 0; x < benchmark_width_ - 1; x += 2) { \
- uint8 r = static_cast<uint8>(random()); \
+ uint8 r = static_cast<uint8>(fastrand()); \
p[0] = r; \
p[1] = r; \
p[HN] = r; \
@@ -74,7 +74,7 @@ TEST_F(libyuvTest, TESTNAME) { \
p += 2; \
} \
if (benchmark_width_ & 1) { \
- uint8 r = static_cast<uint8>(random()); \
+ uint8 r = static_cast<uint8>(fastrand()); \
p[0] = r; \
p[HN] = r; \
p += 1; \
« no previous file with comments | « no previous file | unit_test/compare_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698