* eoRNG.cpp, eoRNG.h (K, M, N): Declare static and initialize in cpp. * t-eoGenOp.cpp (init): Do not add std::ends to end of string, as this results in escape-codes (^@) to be printed at runtime and is not necessary anyway. * test/t-eoSymreg.cpp (SymregNode::operator()): Initialize r1 and r2 to avoid compiler warnings.
19 lines
352 B
C++
19 lines
352 B
C++
#ifdef _MSC_VER
|
|
// to avoid long name warnings
|
|
#pragma warning(disable:4786)
|
|
#endif
|
|
|
|
#include <ctime>
|
|
#include "eoRNG.h"
|
|
|
|
// initialize static constants
|
|
const uint32_t eoRng::K(0x9908B0DFU);
|
|
const int eoRng::M(397);
|
|
const int eoRng::N(624);
|
|
|
|
namespace eo
|
|
{
|
|
// global random number generator object
|
|
eoRng rng(static_cast<uint32_t>(time(0)));
|
|
}
|
|
|