| 140 | } |
| 141 | |
| 142 | unsigned int |
| 143 | SimpleDeltaRndNumGenerator::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 | |
| 150 | bool |
| 151 | SimpleDeltaRndNumGenerator::rnd_flipcoin(const unsigned int, const Filter *f, const std::string *where) |
nothing calls this directly
no outgoing calls
no test coverage detected