Created
September 30, 2011 00:49
-
-
Save Akira-Hayasaka/1252362 to your computer and use it in GitHub Desktop.
Get UUID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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