Add an interesting test case for a custom randombytes_uniform implementation

This commit is contained in:
Frank Denis 2017-08-04 23:13:29 +02:00
parent 5b4db091df
commit 28a1e6886e

View File

@ -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);