summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-06 03:12:38 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-06 03:12:38 +0200
commit880c3a30a186eb947a1fae33f58ea19855b620ba (patch)
tree5c479e94a52b5ac5f9bd04b19d3c48fd989aea77 /source
parent7f8ebbfd7f497dfcf903d9f79d0bfa2ccda305b2 (diff)
downloadkit-880c3a30a186eb947a1fae33f58ea19855b620ba.zip
test
Diffstat (limited to 'source')
-rw-r--r--source/tests/secure_random.test.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/tests/secure_random.test.c b/source/tests/secure_random.test.c
index 7ba78e6..a7d1d19 100644
--- a/source/tests/secure_random.test.c
+++ b/source/tests/secure_random.test.c
@@ -15,13 +15,15 @@ TEST("secure random") {
int repeats = 0;
- for (int i = 1; i < sizeof v / sizeof *v; i++)
- printf(" %d \n", v[i]);
-
- for (int i = 1; i < sizeof v / sizeof *v; i++)
+ for (int i = 1; i < sizeof v / sizeof *v; i++) {
+ printf(" %d ", v[i]);
for (int j = 0; j < i; j++)
- if (v[i] == v[j])
+ if (v[i] == v[j]) {
+ printf(" - REPEAT\n");
repeats++;
+ } else
+ printf(" \n");
+ }
REQUIRE(repeats == 0);
}