mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 00:19:30 -05:00
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:
parent
164425188d
commit
00ef48b45d
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user