mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
Fixed compile on Windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4004 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7efe04b8c7
commit
23782a9d28
@ -8,7 +8,7 @@ std::vector<uint32_t> RSRandom::MT(RSRandom::N,0u) ;
|
||||
RsMutex RSRandom::rndMtx ;
|
||||
|
||||
#ifdef WINDOWS_SYS
|
||||
static bool auto_seed = RSRandom::seed( (time(NULL) + pthread_self()*0x1293fe )^0x18e34a12 ) ;
|
||||
static bool auto_seed = RSRandom::seed( (time(NULL) + ((uint32_t) pthread_self().p)*0x1293fe)^0x18e34a12 ) ;
|
||||
#else
|
||||
static bool auto_seed = RSRandom::seed( (time(NULL) + pthread_self()*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user