MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / generate_random_string

Function generate_random_string

tests/test_phmap.h:110–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110String generate_random_string() {
111 static constexpr int max_len = 20;
112 static constexpr char alphanum[] = "0123456789"
113 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
114 "abcdefghijklmnopqrstuvwxyz";
115 String string;
116 for (int i = 0; i < max_len; i++) {
117 string += alphanum[rand() % (sizeof(alphanum) - 1)];
118 }
119 return string;
120}
121
122template <class K, class V>
123void run_complex_test(test_thing<K, V> tester) {

Callers 1

test_phmap.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected