...
The mkstemp()
algorithm for selecting file names has proven to be immune to attacks. This solution is not serially reusable, however, because the mkstemp()
function replaces the "XXXXXX"
in template
the first it is invoked. On subsequent passes through the codeThis is not a problem, as long as template
is reinitialized before calling mkstemp()
a second time. If template
is not reinitialized, the mkstemp()
function will do nothing because the template passed to it contains no X's.
...