chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
410c8ac
)
Stuff more randomness into the pool in the interval timer.
author
mdw
<mdw>
Sat, 3 Feb 2001 22:33:00 +0000
(22:33 +0000)
committer
mdw
<mdw>
Sat, 3 Feb 2001 22:33:00 +0000
(22:33 +0000)
tripe.c
patch
|
blob
|
blame
|
history
diff --git
a/tripe.c
b/tripe.c
index 6ff4a6a896b660ea4b13042997d4f038b9136d2d..cacc7708a5d4b199ac59aecf7cc2d1a2061f68bc 100644
(file)
--- a/
tripe.c
+++ b/
tripe.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: tripe.c,v 1.
1 2001/02/03 20:26:37
mdw Exp $
+ * $Id: tripe.c,v 1.
2 2001/02/03 22:33:00
mdw Exp $
*
* Main program
*
*
* Main program
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: tripe.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: tripe.c,v $
+ * Revision 1.2 2001/02/03 22:33:00 mdw
+ * Stuff more randomness into the pool in the interval timer.
+ *
* Revision 1.1 2001/02/03 20:26:37 mdw
* Initial checkin.
*
* Revision 1.1 2001/02/03 20:26:37 mdw
* Initial checkin.
*
@@
-64,6
+67,7
@@
void interval(struct timeval *tv, void *v)
{
struct timeval tvv;
T( trace(T_PEER, "peer: interval timer"); )
{
struct timeval tvv;
T( trace(T_PEER, "peer: interval timer"); )
+ rand_seed(RAND_GLOBAL, RMD160_HASHSZ);
p_interval();
tvv = *tv;
tvv.tv_sec += T_INTERVAL;
p_interval();
tvv = *tv;
tvv.tv_sec += T_INTERVAL;