Browse Source

Add an interesting test case for a custom randombytes_uniform implementation

next
Frank Denis 7 years ago
parent
commit
28a1e6886e
  1. 1
      test/default/randombytes.c

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

Loading…
Cancel
Save