mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Revert "Core: Fix the SFMT randgen-initbug" - alignment-fix is now properly handled within the respective code
This reverts commit 28310f0938.
This commit is contained in:
@@ -31,11 +31,6 @@
|
||||
typedef ACE_TSS<SFMTRand> SFMTRandTSS;
|
||||
static SFMTRandTSS sfmtRand;
|
||||
|
||||
void init_sfmt()
|
||||
{
|
||||
sfmtRand->RandomInit((int)(time(0)));
|
||||
}
|
||||
|
||||
int32 irand(int32 min, int32 max)
|
||||
{
|
||||
return int32(sfmtRand->IRandom(min, max));
|
||||
|
||||
@@ -24,11 +24,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#ifdef USE_SFMT_FOR_RNG
|
||||
// Initialize SFMT before first use, if enabled.
|
||||
void init_sfmt();
|
||||
#endif
|
||||
|
||||
// Searcher for map of structs
|
||||
template<typename T, class S> struct Finder
|
||||
{
|
||||
|
||||
@@ -139,9 +139,7 @@ int Master::Run()
|
||||
#ifdef USE_SFMT_FOR_RNG
|
||||
sLog->outString("\n");
|
||||
sLog->outString("SFMT has been enabled as the random number generator, if worldserver");
|
||||
sLog->outString("freezes or crashes randomly, first, try disabling SFMT in CMAKE configuration.");
|
||||
sLog->outString("Initializing SFMT before first use.");
|
||||
init_sfmt();
|
||||
sLog->outString("freezes or crashes randomly, first, try disabling SFMT in CMAKE configuration");
|
||||
sLog->outString("\n");
|
||||
#endif //USE_SFMT_FOR_RNG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user