[shell changes from patch from perl5.003_12 to perl5.003_13]
[p5sagit/p5-mst-13.2.git] / t / lib / io_sock.t
index 53690b1..156f6cb 100755 (executable)
@@ -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();