[Support] Rewrite sys::fs::unique_file to not be stupid with /dev/urandom.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 5 May 2012 16:36:24 +0000 (16:36 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 5 May 2012 16:36:24 +0000 (16:36 +0000)
commit92bb514612a7d66a0695b257a3d8f0b9cebcf9d7
tree2af77e8f2f55e2a76ac13377933c1431f70c6a6a
parent9c69e6ae698f44703725eec8ff27630b6b81f0e3
[Support] Rewrite sys::fs::unique_file to not be stupid with /dev/urandom.
 - Just use sys::Process::GetRandomNumber instead of having two poor
   implementations.
 - This is ~70 times (!) faster on my OS X machine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156238 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/PathV2.inc