Fixed crash on Windows.

The mutex rndMtx was not initialized when calling RSRandom::seed on startup.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3497 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-09-15 10:42:24 +00:00
parent 164425188d
commit 00ef48b45d

View File

@ -2,9 +2,9 @@
#include "rsrandom.h"
uint32_t RSRandom::index = 0 ;
static bool auto_seed = RSRandom::seed(time(NULL)) ;
std::vector<uint32_t> RSRandom::MT(RSRandom::N,0u) ;
RsMutex RSRandom::rndMtx ;
static bool auto_seed = RSRandom::seed(time(NULL)) ;
bool RSRandom::seed(uint32_t s)
{