aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-06-17 20:19:54 +0000
committerNick Mathewson <nickm@torproject.org>2003-06-17 20:19:54 +0000
commitdf2789c1111cc66b2cea3e9d2c5236f6d95168c0 (patch)
treecb813b17e38cb6ce9ac10cb8403b8ebffe561902 /src/or/test.c
parent769c78a395b65e22bb8d55c41f1724a2b92491e7 (diff)
downloadtor-df2789c1111cc66b2cea3e9d2c5236f6d95168c0.tar
tor-df2789c1111cc66b2cea3e9d2c5236f6d95168c0.tar.gz
Make sure crypt_seed_rng succeeds
svn:r329
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 7cb79ac08..d9a2d69ff 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -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);
@@ -587,7 +587,7 @@ test_dir_format()
}
int
-main(int c, char**v) {
+main(int c, char**v){
#if 0
or_options_t options; /* command-line and config-file options */