[llvm-commits] [llvm] r156240 - /llvm/trunk/lib/Support/Process.cpp
Chandler Carruth
chandlerc at google.com
Sun May 6 01:46:50 PDT 2012
On Sat, May 5, 2012 at 10:36 AM, Duncan Sands <baldrick at free.fr> wrote:
> > Won't this give us really bad random numbers on system with no
> arc4random (linux)? I'm thinking of multiple invocations of clang in the
> same second all getting the same "random" file name. Does Linux have
> another source of pseudorandom numbers?
>
> If this is about getting unique temporary files, shouldn't tmpfile or
> mkstemp be
> used?
>
Yes, and it seems to have caused: PR12743
This is *not* the way to get temporary files. There are proper OS APIs for
that we should be using, not RNGs....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120506/c78ea3ce/attachment.html>
More information about the llvm-commits
mailing list