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

Method rnd_flipcoin

src/SimpleDeltaRndNumGenerator.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool
151SimpleDeltaRndNumGenerator::rnd_flipcoin(const unsigned int, const Filter *f, const std::string *where)
152{
153 int y = random_choice(2, f, where);
154 assert(y == -1 || (y >= 0 && y < 2));
155 return y;
156}
157
158unsigned long
159SimpleDeltaRndNumGenerator::genrand(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected