From 28a1e6886e4b44371858fa58af4766db2da1f20b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 4 Aug 2017 23:13:29 +0200 Subject: [PATCH] Add an interesting test case for a custom randombytes_uniform implementation --- test/default/randombytes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/default/randombytes.c b/test/default/randombytes.c index d4127145..551afaf4 100644 --- a/test/default/randombytes.c +++ b/test/default/randombytes.c @@ -139,6 +139,7 @@ impl_tests(void) impl.uniform = randombytes_uniform_impl; randombytes_close(); randombytes_set_implementation(&impl); + assert(randombytes_uniform(1) == 1); assert(randombytes_uniform(v) == v); assert(randombytes_uniform(v) == v); assert(randombytes_uniform(v) == v);