Commit 0686eeea authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Explicitly seed the random() function, we might run on a debian system.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4845 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 542e9e55
......@@ -673,6 +673,7 @@ main(int argc, char * const *argv)
init_macro();
init_sema();
srandomdev();
bprintf(vtc_tmpdir, "/tmp/vtc.%d.%08x", getpid(), (unsigned)random());
AZ(mkdir(vtc_tmpdir, 0700));
macro_def(vltop, NULL, "tmpdir", vtc_tmpdir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment