| 41 | |
| 42 | namespace test { |
| 43 | static StringPiece RandomString(random::SimplePhilox* rnd, int len, |
| 44 | string* dst) { |
| 45 | dst->resize(len); |
| 46 | for (int i = 0; i < len; i++) { |
| 47 | (*dst)[i] = static_cast<char>(' ' + rnd->Uniform(95)); // ' ' .. '~' |
| 48 | } |
| 49 | return StringPiece(*dst); |
| 50 | } |
| 51 | static string RandomKey(random::SimplePhilox* rnd, int len) { |
| 52 | // Make sure to generate a wide variety of characters so we |
| 53 | // test the boundary conditions for short-key optimizations. |
no test coverage detected