projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0c16075
)
Socket test improvement from Ilya.
Chip Salzenberg [Mon, 25 Nov 1996 12:56:59 +0000 (
00:56
+1200)]
t/lib/io_sock.t
patch
|
blob
|
blame
|
history
diff --git
a/t/lib/io_sock.t
b/t/lib/io_sock.t
index
53690b1
..
156f6cb
100755
(executable)
--- 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();