------------------------------------------------------------------------------
| 302 | |
| 303 | //------------------------------------------------------------------------------ |
| 304 | std::string GenerateRandomAlphabeticString(unsigned int len) |
| 305 | { |
| 306 | static constexpr auto chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 307 | "abcdefghijklmnopqrstuvwxyz"; |
| 308 | auto rng = std::default_random_engine(std::random_device{}()); |
| 309 | auto dist = std::uniform_int_distribution<int>(0, static_cast<int>(std::strlen(chars) - 1)); |
| 310 | auto result = std::string(len, '\0'); |
| 311 | std::generate_n(begin(result), len, [&]() { return chars[dist(rng)]; }); |
| 312 | |
| 313 | return result; |
| 314 | } |
| 315 | |
| 316 | //------------------------------------------------------------------------------ |
| 317 | std::string GenerateUniqueVariableName( |
no test coverage detected