mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Make sure crypt_seed_rng succeeds
svn:r329
This commit is contained in:
parent
769c78a395
commit
df2789c111
@ -212,7 +212,7 @@ test_crypto()
|
||||
test_assert(data1 && data2 && data3);
|
||||
|
||||
/* Try out RNG. */
|
||||
crypto_seed_rng();
|
||||
test_assert(! crypto_seed_rng());
|
||||
crypto_rand(100, data1);
|
||||
crypto_rand(100, data2);
|
||||
test_memneq(data1,data2,100);
|
||||
|
Loading…
Reference in New Issue
Block a user