summaryrefslogtreecommitdiffstats
path: root/hbeat.c
diff options
context:
space:
mode:
Diffstat (limited to 'hbeat.c')
-rw-r--r--hbeat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hbeat.c b/hbeat.c
index b747516..902fe22 100644
--- a/hbeat.c
+++ b/hbeat.c
@@ -49,6 +49,8 @@ hbeat_init(const char *host, int max_timeout)
hbeatp->last_rhost_btime = 0;
hbeatp->start_quiet_time = 0;
+ srandom(time(0)); /* for gen_cookie */
+
return hbeatp;
}