summaryrefslogtreecommitdiffstats
path: root/pdftool.pl
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@chalmers.se>2010-09-26 14:40:53 +0200
committerGuilhem Moulin <guilhem.moulin@chalmers.se>2010-09-26 14:40:53 +0200
commit38e9dfed2421cf359feba6ae56b308f45df3cb9b (patch)
tree427198e99bbb87bffbc45e0569974c930ae99f6c /pdftool.pl
parent019b9f1d113475708de93e338d876ff7a090254f (diff)
rand -> pid
Diffstat (limited to 'pdftool.pl')
-rwxr-xr-xpdftool.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/pdftool.pl b/pdftool.pl
index ac08c80..bb4d3dc 100755
--- a/pdftool.pl
+++ b/pdftool.pl
@@ -198,8 +198,7 @@ if ($filetype eq "PDF") {
# Need to copy the whole input to an auxiliary file, since
# conversion from PDF to PS requires random access to the data
- $infile = "$tmpdir/pdftool-stdin-" .
- int(rand 2**16) . lc ".$filetype";
+ $infile = "$tmpdir/pdftool-stdin-$$" . lc ".$filetype";
open FIN2, '>', "$infile"
or die "Can't write into `$infile': $!";