9 #ifndef FAIR_MQ_TOOLS_UNIQUE_H 10 #define FAIR_MQ_TOOLS_UNIQUE_H 12 #include <boost/uuid/uuid.hpp> 13 #include <boost/uuid/uuid_generators.hpp> 14 #include <boost/uuid/uuid_io.hpp> 15 #include <boost/functional/hash.hpp> 27 inline std::string Uuid()
29 boost::uuids::random_generator gen;
30 boost::uuids::uuid u = gen();
31 return boost::uuids::to_string(u);
35 inline std::size_t UuidHash()
37 boost::uuids::random_generator gen;
38 boost::hash<boost::uuids::uuid> uuid_hasher;
39 boost::uuids::uuid u = gen();
40 return uuid_hasher(u);
Definition: DeviceRunner.h:23