| 204 | } |
| 205 | |
| 206 | std::string |
| 207 | DefaultRndNumGenerator::RandomDigits( int num ) |
| 208 | { |
| 209 | if (!CGOptions::is_random()) |
| 210 | return AbsRndNumGenerator::RandomDigits(num); |
| 211 | |
| 212 | std::string str; |
| 213 | const char* dec1 = AbsRndNumGenerator::get_dec1(); |
| 214 | while (num--) { |
| 215 | int x = genrand() % 10; |
| 216 | str += dec1[x]; |
| 217 | seq_->add_number(x, 10, rand_depth_); |
| 218 | rand_depth_++; |
| 219 | } |
| 220 | return str; |
| 221 | } |
| 222 |
nothing calls this directly
no test coverage detected