generated from Sithas/conan_template
Рабочая сборка второго executor'а
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user