diff options
author | EuAndreh <eu@euandre.org> | 2024-01-01 17:38:11 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-01-02 03:54:40 -0300 |
commit | 6b9b9f5ed60b2b96e913ae67ddd706adef8df449 (patch) | |
tree | 5cfd3d7d85557261a1725ea7451fc83c1406e734 /src/random.c | |
parent | Init project: copy files and skeletons from others (diff) | |
download | pindaiba-6b9b9f5ed60b2b96e913ae67ddd706adef8df449.tar.gz pindaiba-6b9b9f5ed60b2b96e913ae67ddd706adef8df449.tar.xz |
src/*.c: Group tests under a single #ifdef; remove SipHash code
Diffstat (limited to 'src/random.c')
-rw-r--r-- | src/random.c | 10 |
1 files changed, 3 insertions, 7 deletions
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; |