swr-test: simplify by using uint_rand()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 1 May 2012 11:15:15 +0000 (13:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 1 May 2012 11:25:50 +0000 (13:25 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample_test.c

index ddba2d5..4e27b4e 100644 (file)
@@ -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]);
     }