mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 15:23:11 +00:00
swr-test: simplify by using uint_rand()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5f3f03f5dd
commit
0334464336
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user