#include <iostream>
#include <sstream>
#include <iomanip>
#include <chrono>
#include <functional>
#include <random>
std::string create_uuid()
{
std::stringstream stream;
auto random_seed = std::chrono::system_clock::now().time_since_epoch().count();
std::mt19937 seed_engine(random_seed);
std::uniform_int_distribution<std::size_t> random_gen ;
std::size_t value = random_gen(seed_engine);
stream << std::hex << value;

return stream.str();
}

 利用当前时钟,产生随机数,产生uuid