summaryrefslogtreecommitdiff
path: root/src/utils/uuid.cpp
blob: 23b71feff0c35e6d319a9ddad95a116930221d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}
}