summaryrefslogtreecommitdiffstats
path: root/btimec.c
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2006-08-03 14:59:06 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:46 -0400
commite883a32f32f06aa76785a006c5d04338776128a4 (patch)
tree2f716f89c352cd346bb727ae2fa45c02ea60e972 /btimec.c
parentd1b5e0346ac271397d4d1df2417c3378f46ef4cb (diff)
downloadqarsh-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 'btimec.c')
-rw-r--r--btimec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btimec.c b/btimec.c
index bea87bb..d766e8e 100644
--- a/btimec.c
+++ b/btimec.c
@@ -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);