| 108 | } |
| 109 | |
| 110 | String 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 | |
| 122 | template <class K, class V> |
| 123 | void run_complex_test(test_thing<K, V> tester) { |