summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-04-04 15:04:09 +1000
committerDamien Miller <djm@mindrot.org>2000-04-04 15:04:09 +1000
commit74a333bbe11f67c59c559e0f424d5945eb438577 (patch)
treec0621827777a570091c45f80f53ec56705af0cc8 /entropy.c
parent9f98f06c89afad9c8f32d496c07f3bf44e7dc906 (diff)
- Generate manpages before make install not at the end of make all
- Don't seed the rng quite so often - Always reseed rng when requested
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/entropy.c b/entropy.c
index cd6f1a50..94e7dcec 100644
--- a/entropy.c
+++ b/entropy.c
@@ -41,7 +41,7 @@
# include <ssl/sha.h>
#endif
-RCSID("$Id: entropy.c,v 1.2 2000/04/03 05:07:32 damien Exp $");
+RCSID("$Id: entropy.c,v 1.3 2000/04/04 05:04:10 damien Exp $");
#ifdef EGD_SOCKET
#ifndef offsetof
@@ -424,11 +424,10 @@ seed_rng(void)
void
seed_rng(void)
{
- if (!RAND_status()) {
- debug("Seeding random number generator.");
- debug("%i bytes from system calls", (int)stir_from_system());
- debug("%i bytes from programs", (int)stir_from_programs());
- debug("OpenSSL random status is now %i\n", RAND_status());
- }
+ debug("Seeding random number generator.");
+ debug("OpenSSL random status is now %i\n", RAND_status());
+ debug("%i bytes from system calls", (int)stir_from_system());
+ debug("%i bytes from programs", (int)stir_from_programs());
+ debug("OpenSSL random status is now %i\n", RAND_status());
}
#endif /* defined(EGD_SOCKET) || defined(RANDOM_POOL) */