diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-01 13:15:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-01 13:25:50 +0200 |
commit | 0334464336c2633c5806507d13cc4811e103776b (patch) | |
tree | a02cecbead904b421401e432280149026bed601a | |
parent | 5f3f03f5dd99b8f9efac65830d87c8f958356639 (diff) | |
download | ffmpeg-0334464336c2633c5806507d13cc4811e103776b.tar.gz |
swr-test: simplify by using uint_rand()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswresample/swresample_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c index ddba2d5c20..4e27b4e2c0 100644 --- a/libswresample/swresample_test.c +++ b/libswresample/swresample_test.c @@ -253,7 +253,7 @@ int main(int argc, char **argv){ for(test=0; test<num_tests; test++){ unsigned r; - seed = seed * 1664525 + 1013904223; + uint_rand(seed); r = (seed * (uint64_t)(max_tests - test)) >>32; FFSWAP(int, remaining_tests[r], remaining_tests[max_tests - test - 1]); } |