Patched on Debian to add day, hour and min to the seed, e.g.:
201912091530
The version of curl we ship on bookworm is too prone to port conflicts on tests,
this is the least intrusive workaround as it makes each retry use a different seed.
Gbp-Pq: Name runtests_port_random_seed_variance.patch
Gbp-Pq: Name runtests.pl-Increase-variance-of-random-seed-used-for-tes.patch
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime(time);
# seed of the month. December 2019 becomes 201912
- $randseed = ($year+1900)*100 + $mon+1;
+ # Patched on Debian to add day, hour and min to the seed: 201912091530
+ # The version of curl we ship on bookworm is too prone to port conflicts on tests,
+ # this is the least intrusive workaround as it makes each retry use a different seed.
+ $randseed = ($year+1900)*100 + $mon+1 + $mday + $hour + $min;
open(C, "$CURL --version 2>/dev/null|");
my @c = <C>;
close(C);