Fixed compile on Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3996 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-01-29 19:08:30 +00:00
parent 55ae64a277
commit 91c2c0e4bf
2 changed files with 6 additions and 5 deletions

View file

@ -7,8 +7,9 @@ uint32_t RSRandom::index = 0 ;
std::vector<uint32_t> RSRandom::MT(RSRandom::N,0u) ;
RsMutex RSRandom::rndMtx ;
// If this does not compile on windows, use a ifdef to keep this on linux plz.
#ifdef UBUNTU
static bool auto_seed = RSRandom::seed( (time(NULL) + pthread_self()*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ;
#endif
bool RSRandom::seed(uint32_t s)
{