Index: unit_test/scale_color_test.cc |
diff --git a/unit_test/scale_color_test.cc b/unit_test/scale_color_test.cc |
index 2bb1ccf2c74506f84bfa080fbb75e2608be54751..dc4f9f0545f758fdbf50412b7e2a00ca7f2d891a 100644 |
--- a/unit_test/scale_color_test.cc |
+++ b/unit_test/scale_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; \ |