summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rwxr-xr-xt/lib/io_sock.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/lib/io_sock.t b/t/lib/io_sock.t
index 53690b117c..156f6cb78f 100755
--- a/t/lib/io_sock.t
+++ b/t/lib/io_sock.t
@@ -17,7 +17,9 @@ print "1..5\n";
use IO::Socket;
-$port = 4002 + int(rand(time) & 0xff);
+srand(time);
+$port = 4002 + int(rand 0xff);
+print "# using port $port.\n";
$SIG{ALRM} = sub {};
$pid = fork();