mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 07:35:12 -04:00
Code maintenance for Qt 5:
- Added some more includes needed by MinGW-w64 git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6860 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3a72b27632
commit
9095e9bd75
31 changed files with 44 additions and 3 deletions
|
@ -16,8 +16,13 @@ RsMutex RSRandom::rndMtx("RSRandom") ;
|
|||
// have anyway)
|
||||
//
|
||||
#ifdef WINDOWS_SYS
|
||||
#include <time.h>
|
||||
#ifdef WIN_PTHREADS_H
|
||||
static bool auto_seed = RSRandom::seed( (time(NULL) + ((uint32_t) pthread_self())*0x1293fe)^0x18e34a12 ) ;
|
||||
#else
|
||||
static bool auto_seed = RSRandom::seed( (time(NULL) + ((uint32_t) pthread_self().p)*0x1293fe)^0x18e34a12 ) ;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
bool RSRandom::seed(uint32_t s)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue