MCPcopy Create free account
hub / github.com/apple/foundationdb / randomAlphaNumeric

Method randomAlphaNumeric

flow/DeterministicRandom.cpp:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113char DeterministicRandom::randomAlphaNumeric() {
114 static const char alphanum[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
115 char c = alphanum[gen64() % 62];
116 if (randLog && useRandLog)
117 fprintf(randLog, "Rchar %c\n", c);
118 return c;
119}
120
121std::string DeterministicRandom::randomAlphaNumeric(int length) {
122 std::string s;

Callers 15

openMethod · 0.80
flat_buffers.cppFile · 0.80
randomStrFunction · 0.80
fdbcli.actor.cppFile · 0.80
KVSourceMethod · 0.80
makeKeyMethod · 0.80

Calls 2

fprintfFunction · 0.85
reserveMethod · 0.45

Tested by 4

_setupMethod · 0.64
randomRWKeyRangeFunction · 0.64
randomKeyFunction · 0.64
randomValueFunction · 0.64