mirror of
https://github.com/Zygo/bees.git
synced 2025-06-17 01:56:16 +02:00
bees: remove local cruft, throw at github
This commit is contained in:
16
lib/uuid.cc
Normal file
16
lib/uuid.cc
Normal file
@ -0,0 +1,16 @@
|
||||
#include "crucible/uuid.h"
|
||||
|
||||
namespace crucible {
|
||||
using namespace std;
|
||||
|
||||
const size_t uuid_unparsed_size = 37; // "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\0"
|
||||
|
||||
string
|
||||
uuid_unparse(const unsigned char in[16])
|
||||
{
|
||||
char out[uuid_unparsed_size];
|
||||
::uuid_unparse(in, out);
|
||||
return string(out);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user