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

Unified Diff: unit_test/rotate_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 | « unit_test/rotate_argb_test.cc ('k') | unit_test/scale_argb_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unit_test/rotate_test.cc
diff --git a/unit_test/rotate_test.cc b/unit_test/rotate_test.cc
index 109fdbcc9840238454fd859f04a43e3254bb9374..188d2dcf1e91997f80a012d6e10c99eec4f1e4c2 100644
--- a/unit_test/rotate_test.cc
+++ b/unit_test/rotate_test.cc
@@ -38,7 +38,7 @@ static void I420TestRotate(int src_width, int src_height,
int src_i420_size = src_i420_y_size + src_i420_uv_size * 2;
align_buffer_64(src_i420, src_i420_size);
for (int i = 0; i < src_i420_size; ++i) {
- src_i420[i] = random() & 0xff;
+ src_i420[i] = fastrand() & 0xff;
}
int dst_i420_y_size = dst_width * dst_height;
@@ -151,7 +151,7 @@ static void NV12TestRotate(int src_width, int src_height,
int src_nv12_size = src_nv12_y_size + src_nv12_uv_size;
align_buffer_64(src_nv12, src_nv12_size);
for (int i = 0; i < src_nv12_size; ++i) {
- src_nv12[i] = random() & 0xff;
+ src_nv12[i] = fastrand() & 0xff;
}
int dst_i420_y_size = dst_width * dst_height;
« no previous file with comments | « unit_test/rotate_argb_test.cc ('k') | unit_test/scale_argb_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698