CppCommon  1.0.4.1
C++ Common Library
system_uuid.cpp

Universally unique identifier (UUID) example

#include "system/uuid.h"
#include <iostream>
int main(int argc, char** argv)
{
std::cout << "UUID::Nil(): " << CppCommon::UUID::Nil() << std::endl;
std::cout << "UUID::Sequential(): " << CppCommon::UUID::Sequential() << std::endl;
std::cout << "UUID::Random(): " << CppCommon::UUID::Random() << std::endl;
std::cout << "UUID::Secure(): " << CppCommon::UUID::Secure() << std::endl;
return 0;
}
static UUID Nil()
Generate nil UUID0 (all bits set to zero)
Definition: uuid.h:99
static UUID Random()
Generate random UUID4 (randomly or pseudo-randomly generated version)
Definition: uuid.cpp:96
static UUID Sequential()
Generate sequential UUID1 (time based version)
Definition: uuid.cpp:40
static UUID Secure()
Generate secure UUID4 (secure generated version)
Definition: uuid.cpp:152
Universally unique identifier (UUID) definition.