r4845 - trunk/varnish-cache/bin/varnishtest
phk at varnish-cache.org
phk at varnish-cache.org
Fri May 21 09:27:41 CEST 2010
Author: phk
Date: 2010-05-21 09:27:41 +0200 (Fri, 21 May 2010)
New Revision: 4845
Modified:
trunk/varnish-cache/bin/varnishtest/vtc.c
Log:
Explicitly seed the random() function, we might run on a debian system.
Modified: trunk/varnish-cache/bin/varnishtest/vtc.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc.c 2010-05-20 10:53:16 UTC (rev 4844)
+++ trunk/varnish-cache/bin/varnishtest/vtc.c 2010-05-21 07:27:41 UTC (rev 4845)
@@ -673,6 +673,7 @@
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);
More information about the varnish-commit
mailing list