MCPcopy Create free account
hub / github.com/csmith-project/csmith / RandomNumber

Method RandomNumber

src/RandomNumber.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41RandomNumber *RandomNumber::instance_ = NULL;
42
43RandomNumber::RandomNumber(const unsigned long seed)
44 : seed_(seed)
45{
46 unsigned int count = AbsRndNumGenerator::count();
47
48 for (unsigned int i = 0; i < count; ++i) {
49 RNDNUM_GENERATOR rImpl = static_cast<RNDNUM_GENERATOR>(i);
50 generators_[rImpl] = NULL;
51 }
52}
53
54RandomNumber::~RandomNumber()
55{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected