Ed Tanous | 2c6ffdb | 2023-06-28 11:28:38 -0700 | [diff] [blame] | 1 | #include "ossl_random.hpp" |
2 | |||||
3 | #include <boost/uuid/uuid_generators.hpp> | ||||
4 | #include <boost/uuid/uuid_io.hpp> | ||||
5 | |||||
6 | std::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 | } |