Lines Matching defs:len
12 Slice RandomString(Random* rnd, int len, std::string* dst) {
13 dst->resize(len);
14 for (int i = 0; i < len; i++) {
20 std::string RandomKey(Random* rnd, int len) {
27 for (int i = 0; i < len; i++) {
35 size_t len, std::string* dst) {
36 int raw = static_cast<int>(len * compressed_fraction);
41 // Duplicate the random data until we have filled "len" bytes
43 while (dst->size() < len) {
46 dst->resize(len);