1 #include "ossl_random.hpp" 2 3 #include <boost/uuid/random_generator.hpp> 4 #include <boost/uuid/uuid_io.hpp> 5 6 #include <string> 7 8 std::string bmcweb::getRandomUUID() 9 { 10 using bmcweb::OpenSSLGenerator; 11 OpenSSLGenerator ossl; 12 return boost::uuids::to_string( 13 boost::uuids::basic_random_generator<OpenSSLGenerator>(ossl)()); 14 } 15