Resets the string generator state to the beginning.
| 33 | |
| 34 | // Resets the string generator state to the beginning. |
| 35 | void StringGenerator::Reset() { |
| 36 | digits_.clear(); |
| 37 | hasnext_ = true; |
| 38 | random_ = false; |
| 39 | nrandom_ = 0; |
| 40 | generate_null_ = false; |
| 41 | } |
| 42 | |
| 43 | // Increments the big number in digits_, returning true if successful. |
| 44 | // Returns false if all the numbers have been used. |