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:
click
2012-02-25 20:39:28 +01:00
parent b7ac745aee
commit e615fba7f8
3 changed files with 1 additions and 13 deletions

View File

@@ -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));

View File

@@ -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
{

View File

@@ -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