Ed Tanous | 2c6ffdb | 2023-06-28 11:28:38 -0700 | [diff] [blame] | 1 | #include "ossl_random.hpp" |
| 2 | |
Ed Tanous | f0b59af | 2024-03-20 13:38:04 -0700 | [diff] [blame] | 3 | #include <boost/uuid/random_generator.hpp> |
Ed Tanous | 2c6ffdb | 2023-06-28 11:28:38 -0700 | [diff] [blame] | 4 | #include <boost/uuid/uuid_io.hpp> |
| 5 | |
Ed Tanous | f0b59af | 2024-03-20 13:38:04 -0700 | [diff] [blame] | 6 | #include <string> |
| 7 | |
Ed Tanous | 2c6ffdb | 2023-06-28 11:28:38 -0700 | [diff] [blame] | 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 | } |