[FFmpeg-cvslog] swr-test: simplify by using uint_rand()

Michael Niedermayer git at videolan.org
Tue May 1 13:30:46 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May  1 13:15:15 2012 +0200| [0334464336c2633c5806507d13cc4811e103776b] | committer: Michael Niedermayer

swr-test: simplify by using uint_rand()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0334464336c2633c5806507d13cc4811e103776b
---

 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 ddba2d5..4e27b4e 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]);
     }



More information about the ffmpeg-cvslog mailing list