]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdlib: Tuned down tst-arc4random-thread internal parameters
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 27 Jul 2022 11:59:15 +0000 (08:59 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 29 Jul 2022 12:19:00 +0000 (09:19 -0300)
commit35363b53cef00c3b9886b2c1f45612869f304960
treebe393b65ce8c4b169469846c1d10ba08ad2b1bc8
parentbce0218d9a8355f82f76543fc4acdc721e22dcd6
stdlib: Tuned down tst-arc4random-thread internal parameters

With new arc4random implementation, the internal parameters might
require a lot of runtime and/or trigger some contention on older
kernels (which might trigger spurious timeout failures).

Also, since we are now testing getrandom entropy instead of an
userspace RNG, there is no much need to extensive testing.

With this change the tst-arc4random-thread goes from about 1m to
5s on a Ryzen 9 with 5.15.0-41-generic.

Checked on x86_64-linux-gnu.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
stdlib/tst-arc4random-thread.c