#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <iostream>
int main() {
// This is a random UUID which we'll use as a namespace.
boost::uuids::string_generator gen;
boost::uuids::uuid dns_namespace_uuid = gen("{123e4567-e89b-12d3-a456-426655440000}");
// This is our name.
std::string name = "276009026410828";
// Generate a UUID based on the DNS namespace and our name.
boost::uuids::name_generator name_gen(dns_namespace_uuid);
boost::uuids::uuid u = name_gen(name);
std::cout << u << std::endl;
return 0;
}
I2luY2x1ZGUgPGJvb3N0L3V1aWQvdXVpZC5ocHA+CiNpbmNsdWRlIDxib29zdC91dWlkL3V1aWRfZ2VuZXJhdG9ycy5ocHA+CiNpbmNsdWRlIDxib29zdC91dWlkL3V1aWRfaW8uaHBwPgojaW5jbHVkZSA8aW9zdHJlYW0+CgppbnQgbWFpbigpIHsKICAgIC8vIFRoaXMgaXMgYSByYW5kb20gVVVJRCB3aGljaCB3ZSdsbCB1c2UgYXMgYSBuYW1lc3BhY2UuCiAgICBib29zdDo6dXVpZHM6OnN0cmluZ19nZW5lcmF0b3IgZ2VuOwogICAgYm9vc3Q6OnV1aWRzOjp1dWlkIGRuc19uYW1lc3BhY2VfdXVpZCA9IGdlbigiezEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjY1NTQ0MDAwMH0iKTsKCiAgICAvLyBUaGlzIGlzIG91ciBuYW1lLgogICAgc3RkOjpzdHJpbmcgbmFtZSA9ICIyNzYwMDkwMjY0MTA4MjgiOwoKICAgIC8vIEdlbmVyYXRlIGEgVVVJRCBiYXNlZCBvbiB0aGUgRE5TIG5hbWVzcGFjZSBhbmQgb3VyIG5hbWUuCiAgICBib29zdDo6dXVpZHM6Om5hbWVfZ2VuZXJhdG9yIG5hbWVfZ2VuKGRuc19uYW1lc3BhY2VfdXVpZCk7CiAgICBib29zdDo6dXVpZHM6OnV1aWQgdSA9IG5hbWVfZ2VuKG5hbWUpOwoKICAgIHN0ZDo6Y291dCA8PCB1IDw8IHN0ZDo6ZW5kbDsKCiAgICByZXR1cm4gMDsKfQ==