Commit 4d207370 by Francois Gygi

moved to uuid_str


git-svn-id: http://qboxcode.org/svn/qb/trunk@799 cba15fb0-1239-40c8-b417-11db7ca47a34
parent b81829cf
#include <uuid/uuid.h>
#include "uuid.h"
using namespace std;
std::string uuid(void)
{
unsigned char uuid[16];
char s[36];
// generate uuid
uuid_generate_time(uuid);
// convert to string
uuid_unparse(uuid,s);
return string(s);
}
#include <string>
std::string uuid(void);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment