]> git.ipfire.org Git - thirdparty/bind9.git/commit
Switch the locknum generation for qpznode to random
authorOndřej Surý <ondrej@isc.org>
Tue, 4 Feb 2025 20:15:22 +0000 (21:15 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 4 Feb 2025 22:28:53 +0000 (23:28 +0100)
commitdb2bce1c6fadc8eac84966e277bb5f97fc26d691
tree396d7a31497fdd64e2a3fffd8fe5a15d575ffd3c
parentd4e8a92977b8ab63e4425f2056ea3871c386acc6
Switch the locknum generation for qpznode to random

Instead of using on hash of the name modulo number of the buckets,
assign the locknum randomly with isc_random_uniform().  This makes
the locknum assignment aligned with qpcache and allows the bucket
number to be non-prime in the future.

(cherry picked from commit 732fc338a94d58f78a15e17225a94e1a5f868d6a)
lib/dns/qpzone.c