From 38e9dfed2421cf359feba6ae56b308f45df3cb9b Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 26 Sep 2010 14:40:53 +0200 Subject: rand -> pid --- psresize2.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'psresize2.pl') diff --git a/psresize2.pl b/psresize2.pl index 7224a82..dc3ee6f 100755 --- a/psresize2.pl +++ b/psresize2.pl @@ -202,7 +202,7 @@ if (defined $infile && $infile ne "-") { # TODO: no need to such an ugly auxiliary file? - $infile = "$tmpdir/psresize-stdin-" . int(rand 2**16) . ".ps"; + $infile = "$tmpdir/psresize-stdin-$$.ps"; open FIN2, '>', "$infile" or die "Can't write into `$infile': $!"; -- cgit v1.2.3