swr-test: simplify by using uint_rand()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/30/merge
Michael Niedermayer 13 years ago
parent 5f3f03f5dd
commit 0334464336
  1. 2
      libswresample/swresample_test.c

@ -253,7 +253,7 @@ int main(int argc, char **argv){
for(test=0; test<num_tests; test++){ for(test=0; test<num_tests; test++){
unsigned r; unsigned r;
seed = seed * 1664525 + 1013904223; uint_rand(seed);
r = (seed * (uint64_t)(max_tests - test)) >>32; r = (seed * (uint64_t)(max_tests - test)) >>32;
FFSWAP(int, remaining_tests[r], remaining_tests[max_tests - test - 1]); FFSWAP(int, remaining_tests[r], remaining_tests[max_tests - test - 1]);
} }

Loading…
Cancel
Save