You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
swr-test: simplify by using uint_rand()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user