From e8e58c09ae2845d79d6ba894af5d8347e2b3a657 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 5 Jul 2024 09:46:35 -0300 Subject: src/random.h: Add initial implementation of random_{new,free,generate}() --- tests/random.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'tests') diff --git a/tests/random.c b/tests/random.c index c894e59..09ad1a7 100644 --- a/tests/random.c +++ b/tests/random.c @@ -56,6 +56,25 @@ out: return rc; } +static int +test_random_new(void) { + // FIXME: implement these + return 0; +} + +static int +test_random_free(void) { + // FIXME: implement these + return 0; +} + +static int +test_random_generate(void) { + // FIXME: implement these + return 0; +} + + int main(void) { int rc = EXIT_FAILURE; @@ -65,6 +84,21 @@ main(void) { goto out; } + if (test_random_new()) { + logerr("test_random_new()"); + goto out; + } + + if (test_random_free()) { + logerr("test_random_free()"); + goto out; + } + + if (test_random_generate()) { + logerr("test_random_generate()"); + goto out; + } + rc = EXIT_SUCCESS; out: return rc; -- cgit v1.2.3