Add unit tests that check for common RNG failure modes
commit155fa2dbdb78be0cbf73c9b200a295740584f24e
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Thu, 26 Nov 2015 10:25:31 +0000 (26 21:25 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Thu, 26 Nov 2015 10:27:05 +0000 (26 21:27 +1100)
treea238077a13982c98d8f2a94e6f3f317a21e8e9ce
parent943369f927967268cacd2067ccae0bc5f1c5835e
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).
changes/rand-failure-modes [new file with mode: 0644]
src/test/test_crypto.c