summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Process.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-05-06 08:24:18 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-05-06 08:24:18 +0000
commit54acb28882bc42d58a0c0b8fdd8501bdb88df6e0 (patch)
treec5d7cf968f6f04a892c00e6efa6ea896b9683efb /llvm/lib/Support/Process.cpp
parent99fdf8d418da846a7d36a46482a3d0cdec92586b (diff)
downloadbcm5719-llvm-54acb28882bc42d58a0c0b8fdd8501bdb88df6e0.tar.gz
bcm5719-llvm-54acb28882bc42d58a0c0b8fdd8501bdb88df6e0.zip
Support/Process: Move llvm::sys::Process::GetRandomNumber() from Process.cpp to Unix/Process.inc.
FIXME: GetRandomNumber() is not implemented in Win32. llvm-svn: 156251
Diffstat (limited to 'llvm/lib/Support/Process.cpp')
-rw-r--r--llvm/lib/Support/Process.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp
index 2cff1cebe51..88ca7c3f220 100644
--- a/llvm/lib/Support/Process.cpp
+++ b/llvm/lib/Support/Process.cpp
@@ -13,7 +13,6 @@
#include "llvm/Support/Process.h"
#include "llvm/Config/config.h"
-#include <cstdlib>
namespace llvm {
using namespace sys;
@@ -23,15 +22,6 @@ using namespace sys;
//=== independent code.
//===----------------------------------------------------------------------===//
-unsigned llvm::sys::Process::GetRandomNumber() {
-#if defined(HAVE_ARC4RANDOM)
- return arc4random();
-#else
- static int x = (::srand(::time(NULL)), 0);
- return ::rand();
-#endif
-}
-
}
// Include the platform-specific parts of this class.
OpenPOWER on IntegriCloud