diff options
author | 2019-12-18 11:02:57 +0000 | |
---|---|---|
committer | 2019-12-18 11:02:57 +0000 | |
commit | b0dfc31be27198e43ddd415778a6a190eb205f66 (patch) | |
tree | 737e998be5eb049b2c0b270dfd652170f4d2bb34 /usr.sbin/unbound/testcode/unitmain.c | |
parent | add the changelog (diff) | |
download | wireguard-openbsd-b0dfc31be27198e43ddd415778a6a190eb205f66.tar.xz wireguard-openbsd-b0dfc31be27198e43ddd415778a6a190eb205f66.zip |
import Unbound 1.9.6, ok tb florian
Diffstat (limited to 'usr.sbin/unbound/testcode/unitmain.c')
-rw-r--r-- | usr.sbin/unbound/testcode/unitmain.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/unbound/testcode/unitmain.c b/usr.sbin/unbound/testcode/unitmain.c index e28be8c833a..e8e7a44c7cb 100644 --- a/usr.sbin/unbound/testcode/unitmain.c +++ b/usr.sbin/unbound/testcode/unitmain.c @@ -538,10 +538,8 @@ rnd_test(void) struct ub_randstate* r; int num = 1000, i; long int a[1000]; - unsigned int seed = (unsigned)time(NULL); unit_show_feature("ub_random"); - printf("ub_random seed is %u\n", seed); - unit_assert( (r = ub_initstate(seed, NULL)) ); + unit_assert( (r = ub_initstate(NULL)) ); for(i=0; i<num; i++) { a[i] = ub_random(r); unit_assert(a[i] >= 0); @@ -907,7 +905,7 @@ main(int argc, char* argv[]) ecs_test(); #endif /* CLIENT_SUBNET */ if(log_get_lock()) { - lock_quick_destroy((lock_quick_type*)log_get_lock()); + lock_basic_destroy((lock_basic_type*)log_get_lock()); } checklock_stop(); printf("%d checks ok.\n", testcount); |