diff options
author | Nate Straz <nstraz@redhat.com> | 2006-08-03 14:59:06 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:46 -0400 |
commit | e883a32f32f06aa76785a006c5d04338776128a4 (patch) | |
tree | 2f716f89c352cd346bb727ae2fa45c02ea60e972 /hbeat.c | |
parent | d1b5e0346ac271397d4d1df2417c3378f46ef4cb (diff) | |
download | qarsh-e883a32f32f06aa76785a006c5d04338776128a4.tar.gz qarsh-e883a32f32f06aa76785a006c5d04338776128a4.tar.xz qarsh-e883a32f32f06aa76785a006c5d04338776128a4.zip |
Set the random seed so all qarsh processes don't generate the same
sequence of cookies.
Diffstat (limited to 'hbeat.c')
-rw-r--r-- | hbeat.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |