mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[Support] Add missing include.
llvm-svn: 156240
This commit is contained in:
parent
d7d85c4a85
commit
af0500eb5d
@ -13,6 +13,7 @@
|
||||
|
||||
#include "llvm/Support/Process.h"
|
||||
#include "llvm/Config/config.h"
|
||||
#include <cstdlib>
|
||||
|
||||
namespace llvm {
|
||||
using namespace sys;
|
||||
@ -27,7 +28,7 @@ unsigned llvm::sys::Process::GetRandomNumber() {
|
||||
return arc4random();
|
||||
#else
|
||||
static int x = (::srand(::time(NULL)), 0);
|
||||
return rand();
|
||||
return ::rand();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user