Use TLS variables to store RNG state, make RNG lockless

This commit is contained in:
Witold Kręcicki
2018-08-24 11:21:27 +02:00
parent e79b42fec0
commit 8c5aeb6c4c
5 changed files with 38 additions and 7 deletions

View File

@@ -277,13 +277,13 @@ ns_test_begin(FILE *logfile, bool start_managers) {
void
ns_test_end(void) {
cleanup_managers();
if (dst_active) {
dst_lib_destroy();
dst_active = false;
}
cleanup_managers();
if (lctx != NULL)
isc_log_destroy(&lctx);