From 835e1fcd131c63ee2b3b647e327b33a3bfb369e3 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 2 Sep 2023 20:59:29 +0200 Subject: [Linux] Change build system; Remove CMake --- source/test/unittests/secure_random.test.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 source/test/unittests/secure_random.test.c (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 deleted file mode 100644 index bde68a5..0000000 --- a/source/test/unittests/secure_random.test.c +++ /dev/null @@ -1,24 +0,0 @@ -#include "../../kit/secure_random.h" -#include - -#define KIT_TEST_FILE secure_random -#include "../../kit_test/test.h" - -TEST("secure random") { - int i, j; - - int v[20]; - memset(v, 0, sizeof v); - - secure_random(40, v); - secure_random(40, v + 10); - - int repeats = 0; - - for (i = 1; i < sizeof v / sizeof *v; i++) - for (j = 0; j < i; j++) - if (v[i] == v[j]) - repeats++; - - REQUIRE(repeats == 0); -} -- cgit v1.2.3