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

Unified Diff: unit_test/rotate_argb_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/planar_test.cc ('k') | unit_test/rotate_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unit_test/rotate_argb_test.cc
diff --git a/unit_test/rotate_argb_test.cc b/unit_test/rotate_argb_test.cc
index 5cd7b0ad6966f15e1386a82bf53efe0f54aec5e8..efe4b5f459de028161c8aff1bd1924dc0bcc49e9 100644
--- a/unit_test/rotate_argb_test.cc
+++ b/unit_test/rotate_argb_test.cc
@@ -38,7 +38,7 @@ void TestRotateBpp(int src_width, int src_height,
int src_argb_plane_size = src_stride_argb * abs(src_height);
align_buffer_64(src_argb, src_argb_plane_size);
for (int i = 0; i < src_argb_plane_size; ++i) {
- src_argb[i] = random() & 0xff;
+ src_argb[i] = fastrand() & 0xff;
}
int dst_stride_argb = dst_width * kBpp;
« no previous file with comments | « unit_test/planar_test.cc ('k') | unit_test/rotate_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698