Socket test improvement from Ilya.
Chip Salzenberg [Mon, 25 Nov 1996 12:56:59 +0000 (00:56 +1200)]
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();