diff options
-rw-r--r-- | btimec.c | 1 | ||||
-rw-r--r-- | hbeat.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -36,6 +36,7 @@ main(int argc, char **argv) fprintf(stderr, usage, argv[0]); exit(2); } + srandom(time(0)); for ( ; optind < argc; optind++) { btimedhost = argv[optind]; bt = btime(btimedhost); @@ -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; } |