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

Method rnd_upto

src/SimpleDeltaRndNumGenerator.cpp:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142unsigned int
143SimpleDeltaRndNumGenerator::rnd_upto(const unsigned int n, const Filter *f, const std::string *where)
144{
145 int x = random_choice(n, f, where);
146 assert(x == -1 || (x >= 0 && x < static_cast<int>(n)));
147 return x;
148}
149
150bool
151SimpleDeltaRndNumGenerator::rnd_flipcoin(const unsigned int, const Filter *f, const std::string *where)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected