Commit 03344643 authored by Michael Niedermayer's avatar Michael Niedermayer

swr-test: simplify by using uint_rand()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5f3f03f5
......@@ -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]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment