blob: f196a8b5a369661c91bad076cb75b4666ff392ca [file] [log] [blame]
Ed Tanous2c6ffdb2023-06-28 11:28:38 -07001#include "ossl_random.hpp"
2
3#include <boost/uuid/uuid_generators.hpp>
4#include <boost/uuid/uuid_io.hpp>
5
6std::string bmcweb::getRandomUUID()
7{
8 using bmcweb::OpenSSLGenerator;
9 OpenSSLGenerator ossl;
10 return boost::uuids::to_string(
11 boost::uuids::basic_random_generator<OpenSSLGenerator>(ossl)());
12}