Add unit tests that check for common RNG failure modes

Check that crypto_rand doesn't return all zeroes, identical values,
or incrementing values (OpenSSL's rand_predictable feature).
This commit is contained in:
teor (Tim Wilson-Brown)
2015-11-26 21:25:31 +11:00
parent 943369f927
commit 155fa2dbdb
2 changed files with 110 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor features (unit tests, random number generation):
- Add unit tests that check for common RNG failure modes, such as
returning all zeroes, identical values, or incrementing values
(OpenSSL's rand_predictable feature).
Patch by "teor".