MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeRandomString

Function makeRandomString

valdi/test/benchmark/utils/benchmark_utils.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22std::string makeRandomString(size_t strLength) {
23 std::string out;
24
25 for (size_t i = 0; i < strLength; i++) {
26 out.append(1, randomCharacterGenerator());
27 }
28
29 return out;
30}
31
32std::vector<std::string> makeRandomStrings(size_t strLength) {
33 std::vector<std::string> out;

Callers 2

makeRandomStringsFunction · 0.85

Calls 2

randomCharacterGeneratorFunction · 0.85
appendMethod · 0.65

Tested by

no test coverage detected