|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
GUID generation utilities. More...
#include <random>#include <array>#include <cstdint>#include <string>#include <iomanip>#include <sstream>#include <cstring>#include "tec/tec_def.hpp"Go to the source code of this file.
Classes | |
| struct | tec::guid::details::randgen |
| Thread-local randomness. More... | |
Typedefs | |
| using | tec::uuid_t = std::array< std::uint8_t, 16 > |
| 16-byte GUID | |
Functions | |
| uuid_t | tec::guid::generate_v4 () |
| Generates 16-byte uuid_t version 4. | |
| std::ostream & | tec::guid::operator<< (std::ostream &os, const uuid_t &uuid) |
| std::string | tec::guid::to_string (const uuid_t &uuid) |
| Convert GUID to hex string (in lowercase). | |
| std::string | tec::guid::generate () |
| Generate new GUID as hex string (in lowercase). | |
GUID generation utilities.
|
inline |
Generate new GUID as hex string (in lowercase).