1 parent
68e1480075
commit
9500bfd4cc
9 files changed
+50
-31
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#include <utils/uuid.hpp>
|
||||
#include <uuid/uuid.h>
|
||||
|
||||
namespace utils
|
||||
{
|
||||
std::string gen_uuid()
|
||||
{
|
||||
char uuid_str[37];
|
||||
uuid_t uuid;
|
||||
uuid_generate(uuid);
|
||||
uuid_unparse(uuid, uuid_str);
|
||||
return uuid_str;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace utils
|
||||
{
|
||||
std::string gen_uuid();
|
||||
}
|
||||
Reference in new issue
Block a user