swr-test: simplify by using uint_rand()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-01 13:15:15 +02:00
parent 5f3f03f5dd
commit 0334464336
1 changed files with 1 additions and 1 deletions

View 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]);
}