]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make sure crypt_seed_rng succeeds
authorNick Mathewson <nickm@torproject.org>
Tue, 17 Jun 2003 20:19:54 +0000 (20:19 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 17 Jun 2003 20:19:54 +0000 (20:19 +0000)
svn:r329

src/or/test.c

index 7cb79ac086e0071d15da1b08e148e69f97b9224a..d9a2d69fff2e6fff2d1558fb5965d2aca2918329 100644 (file)
@@ -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 */