| 1234567891011121314151617181920 |
- #pragma once
- #include <string>
- #include <random>
- #include <sstream>
- #include <iomanip>
- namespace smartbotic::common {
- class UUID {
- public:
- static std::string generate();
- static std::string generatePrefixed(const std::string& prefix);
- static bool isValid(const std::string& uuid);
- private:
- static thread_local std::mt19937_64 generator_;
- };
- } // namespace smartbotic::common
|