From 7e6b36bc2d332a3cb66b83116a393ac4728236d5 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Thu, 29 Dec 2022 07:51:16 +0100 Subject: Improve C89/90 compat --- source/test/unittests/secure_random.test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (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 index ec0a7b2..bde68a5 100644 --- a/source/test/unittests/secure_random.test.c +++ b/source/test/unittests/secure_random.test.c @@ -5,6 +5,8 @@ #include "../../kit_test/test.h" TEST("secure random") { + int i, j; + int v[20]; memset(v, 0, sizeof v); @@ -13,8 +15,8 @@ TEST("secure random") { int repeats = 0; - for (int i = 1; i < sizeof v / sizeof *v; i++) - for (int j = 0; j < i; j++) + for (i = 1; i < sizeof v / sizeof *v; i++) + for (j = 0; j < i; j++) if (v[i] == v[j]) repeats++; -- cgit v1.2.3