]> git.ipfire.org Git - thirdparty/chrony.git/commit
util: randomize hashing of IP addresses
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 14 Mar 2016 17:06:56 +0000 (18:06 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 15 Mar 2016 13:29:42 +0000 (14:29 +0100)
commitb45f53dd2030456bbcc14bc0fd5f47c712e59d2d
tree761d3378ddd94e7941dd3c1091315cfc80ac8344
parent9749a1c6fcbdbf158bef2e0b454e7044a742749a
util: randomize hashing of IP addresses

Include a random (constant) value in the hash in UTI_IPToHash() to
randomize the order in which NTP sources are stored in the hash table
and polled on start. This change also randomizes the order of clientlog
records.
util.c