mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -2,9 +2,9 @@
|
||||||
#include "rsrandom.h"
|
#include "rsrandom.h"
|
||||||
|
|
||||||
uint32_t RSRandom::index = 0 ;
|
uint32_t RSRandom::index = 0 ;
|
||||||
static bool auto_seed = RSRandom::seed(time(NULL)) ;
|
|
||||||
std::vector<uint32_t> RSRandom::MT(RSRandom::N,0u) ;
|
std::vector<uint32_t> RSRandom::MT(RSRandom::N,0u) ;
|
||||||
RsMutex RSRandom::rndMtx ;
|
RsMutex RSRandom::rndMtx ;
|
||||||
|
static bool auto_seed = RSRandom::seed(time(NULL)) ;
|
||||||
|
|
||||||
bool RSRandom::seed(uint32_t s)
|
bool RSRandom::seed(uint32_t s)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue