diff options
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; |