首页 > 代码库 > uuid

uuid

std::string GenUuid()
{
	boost::uuids::basic_random_generator<boost::mt19937> gen;
	boost::uuids::uuid u = gen();
	std::stringstream ss;
	ss << u;
	return ss.str();
}