Рабочая сборка второго executor'а

This commit is contained in:
Антон
2025-09-20 11:41:31 +03:00
parent c7bd64ec9b
commit b6ddf88a61
6 changed files with 31 additions and 7 deletions
+8
View File
@@ -1,6 +1,7 @@
#include <iostream>
#include <string>
#include <random>
#include <boost/uuid.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
@@ -122,6 +123,13 @@ std::string HashPassword(const std::string& password)
return ToHex((byte*)&calculated_hash, sizeof(calculated_hash));
}
std::string GenerateUUID()
{
uuids::random_generator generator;
return uuids::to_string(generator());
}
uint64_t Random()
{
std::random_device device;
+2
View File
@@ -14,5 +14,7 @@ std::string ToHex(std::byte* src, size_t len);
std::string HashPassword(const std::string& password);
std::string GenerateUUID();
uint64_t Random();
} // namespace uad