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

Function randomCharacterGenerator

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

Source from the content-addressed store, hash-verified

16std::uniform_int_distribution<int> distribution(' ', '~');
17
18char randomCharacterGenerator() {
19 return static_cast<char>(distribution(generator));
20}
21
22std::string makeRandomString(size_t strLength) {
23 std::string out;

Callers 1

makeRandomStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected