summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
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);
}