Add an interesting test case for a custom randombytes_uniform implementation
This commit is contained in:
parent
5b4db091df
commit
28a1e6886e
@ -139,6 +139,7 @@ impl_tests(void)
|
|||||||
impl.uniform = randombytes_uniform_impl;
|
impl.uniform = randombytes_uniform_impl;
|
||||||
randombytes_close();
|
randombytes_close();
|
||||||
randombytes_set_implementation(&impl);
|
randombytes_set_implementation(&impl);
|
||||||
|
assert(randombytes_uniform(1) == 1);
|
||||||
assert(randombytes_uniform(v) == v);
|
assert(randombytes_uniform(v) == v);
|
||||||
assert(randombytes_uniform(v) == v);
|
assert(randombytes_uniform(v) == v);
|
||||||
assert(randombytes_uniform(v) == v);
|
assert(randombytes_uniform(v) == v);
|
||||||
|
Loading…
Reference in New Issue
Block a user