Use random filenames for tmp files
Merge pull request #2 from thomaswelton/1-fix-tmpdir-access

Use random filenames for tmp files