]> git.ipfire.org Git - thirdparty/bind9.git/commit
Move random number re-seeding out of the hot path
authorTony Finch <fanf@isc.org>
Fri, 22 Apr 2022 13:35:36 +0000 (14:35 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 19 Sep 2022 14:27:12 +0000 (16:27 +0200)
commitbd251de035cd1a925007b605d05ecf05b3ef698f
tree566ddc86958cbac9f6edebeab1612f6256d88e16
parentde755955757aa5fbed7b1cfc91e2c710fa4dffeb
Move random number re-seeding out of the hot path

Instead of checking if we need to re-seed for every isc_random call,
seed the random number generator in the libisc global initializer
and the per-thread initializer.
lib/isc/Makefile.am
lib/isc/random.c
lib/isc/random_p.h [new file with mode: 0644]
lib/isc/trampoline.c
tests/isc/random_test.c