44821a918c
Summary: Add telemetry to main memgraph binary Add resource usage collector Add telemetry flag Change telemetry collector logic Fix utils compilation Add timestamp Add first version of interactive test Started working on test runner Implement all tests Flake8 on runner.py Integrate test with Apollo Add TODO Reviewers: buda, teon.banek Reviewed By: buda, teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1419
16 lines
284 B
C++
16 lines
284 B
C++
#include "utils/uuid.hpp"
|
|
|
|
#include <uuid/uuid.h>
|
|
|
|
namespace utils {
|
|
|
|
std::string GenerateUUID() {
|
|
uuid_t uuid;
|
|
char decoded[37]; // magic size from: man 2 uuid_unparse
|
|
uuid_generate(uuid);
|
|
uuid_unparse(uuid, decoded);
|
|
return std::string(decoded);
|
|
}
|
|
|
|
} // namespace utils
|