| 114 | } |
| 115 | |
| 116 | std::string getRandomKey(const std::string& set, const int len) |
| 117 | { |
| 118 | std::string r; |
| 119 | for (int i = 0; i < len; i++) |
| 120 | r.push_back(set.at(size_t(Math::randint(0, 100000) % set.size()))); |
| 121 | return r; |
| 122 | } |
| 123 | |
| 124 | bool contains(const std::string& string, const std::string& search) |
| 125 | { |