[llvm-commits] [llvm] r156240 - /llvm/trunk/lib/Support/Process.cpp

Duncan Sands baldrick at free.fr
Sat May 5 10:36:04 PDT 2012


> 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?

Ciao, Duncan.



More information about the llvm-commits mailing list