From 6b9b9f5ed60b2b96e913ae67ddd706adef8df449 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 1 Jan 2024 17:38:11 -0300 Subject: src/*.c: Group tests under a single #ifdef; remove SipHash code --- src/random.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/random.c') diff --git a/src/random.c b/src/random.c index d92d533..c6da688 100644 --- a/src/random.c +++ b/src/random.c @@ -10,10 +10,6 @@ #include "logerr.h" #include "random.h" -#ifdef TEST -#include "testing.h" -#endif - int urandom_bytes(const size_t n, uint8_t (*const addr)[]) { @@ -46,7 +42,10 @@ out: return rc; } + #ifdef TEST +#include "testing.h" + static int test_urandom_bytes(void) { int rc = 0; @@ -102,10 +101,7 @@ test_urandom_bytes(void) { out: return rc; } -#endif - -#ifdef TEST int main(void) { int rc = 0; -- cgit v1.2.3