From 901478a2d04fcae70cf1f99f19b7508256633fa0 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 17 Dec 2022 23:16:55 +0100 Subject: Secure random fallback: thread safety --- source/test/unittests/secure_random.test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/test/unittests/secure_random.test.c') diff --git a/source/test/unittests/secure_random.test.c b/source/test/unittests/secure_random.test.c index ec0a7b2..eadae65 100644 --- a/source/test/unittests/secure_random.test.c +++ b/source/test/unittests/secure_random.test.c @@ -8,9 +8,13 @@ TEST("secure random") { int v[20]; memset(v, 0, sizeof v); + secure_random_init(); + secure_random(40, v); secure_random(40, v + 10); + secure_random_cleanup(); + int repeats = 0; for (int i = 1; i < sizeof v / sizeof *v; i++) -- cgit v1.2.3