Skip to content

Instantly share code, notes, and snippets.

@Akira-Hayasaka
Created September 30, 2011 00:49
Show Gist options
  • Save Akira-Hayasaka/1252362 to your computer and use it in GitHub Desktop.
Save Akira-Hayasaka/1252362 to your computer and use it in GitHub Desktop.
Get UUID
#include <uuid/uuid.h>
uuid_t uuid;
uuid_generate_random(uuid);
char s[37];
uuid_unparse(uuid, s);
string idstr = s;
cout << idstr << endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment