]> git.ipfire.org Git - thirdparty/chrony.git/commit
configure: disable arc4random on Linux
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 3 Aug 2022 11:17:42 +0000 (13:17 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 3 Aug 2022 13:23:38 +0000 (15:23 +0200)
commitd91ae2094fa87094430392acd9fd54b4132ba9f1
tree8d8169f809be6fff0896f04e656f03bac804b7d5
parent30a584509895a29a573c9546bdede13d877ce13e
configure: disable arc4random on Linux

In glibc 2.36 was added the arc4random family of functions. However,
unlike on other supported systems, it is not a user-space PRNG
implementation. It just wraps the getrandom() system call with no
buffering, which causes a performance loss on NTP servers due to
the function being called twice for each response to add randomness
to the RX and TX timestamp below the clock precision.

Don't check for arc4random on Linux to keep using the buffered
getrandom().
configure