JuliaLang/julia — pull request #1415 by johnmyleswhite (2012-10-20 19:25:42+00:00)
Title: Rewritten tempfile() and tempdir() functions

This patch uses some of the ideas from Python's temporary file/directory functions to implement `tempdir()` and `tempfile()` in a way that should be more portable than our current approach.

The one major concern is a potential lock caused by multiple threads of Julia all trying to write to the same directory using a single RNG for generating random filenames. As I understand it, insuring that cannot happen requires further revisions to our RNG infrastructure.