| 10 | namespace test { |
| 11 | |
| 12 | Slice RandomString(Random* rnd, int len, std::string* dst) { |
| 13 | dst->resize(len); |
| 14 | for (int i = 0; i < len; i++) { |
| 15 | (*dst)[i] = static_cast<char>(' ' + rnd->Uniform(95)); // ' ' .. '~' |
| 16 | } |
| 17 | return Slice(*dst); |
| 18 | } |
| 19 | |
| 20 | std::string RandomKey(Random* rnd, int len) { |
| 21 | // Make sure to generate a wide variety of characters so we |
no test coverage detected