From 54acb28882bc42d58a0c0b8fdd8501bdb88df6e0 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 6 May 2012 08:24:18 +0000 Subject: Support/Process: Move llvm::sys::Process::GetRandomNumber() from Process.cpp to Unix/Process.inc. FIXME: GetRandomNumber() is not implemented in Win32. llvm-svn: 156251 --- llvm/lib/Support/Process.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'llvm/lib/Support/Process.cpp') 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 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. -- cgit v1.2.3