blob: 126197792bb5325574219996a09a4b0fd9769d77 [file] [log] [blame]
Ed Tanous2c6ffdb2023-06-28 11:28:38 -07001#include "ossl_random.hpp"
2
Ed Tanousf0b59af2024-03-20 13:38:04 -07003#include <boost/uuid/random_generator.hpp>
Ed Tanous2c6ffdb2023-06-28 11:28:38 -07004#include <boost/uuid/uuid_io.hpp>
5
Ed Tanousf0b59af2024-03-20 13:38:04 -07006#include <string>
7
Ed Tanous2c6ffdb2023-06-28 11:28:38 -07008std::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}