|
Safeheron-SGX-Native-Development-Framework v1.2.0
|
A thread-safe UUID Generator that generates only UUID V4 (random-based). More...
#include <ssgx_utils_t_uuid.h>
Public Member Functions | |
| UUIDGenerator ()=default | |
| Default constructor for the UUIDGenerator class. | |
| std::string | NewUUID4 () |
| Generates a new UUID V4 (random-based). | |
A thread-safe UUID Generator that generates only UUID V4 (random-based).
This class provides a method to generate Universally Unique Identifiers (UUIDs) conforming to version 4 of the UUID standard. It is thread-safe and ensures unique IDs in concurrent environments.
|
default |
Default constructor for the UUIDGenerator class.
Initializes the generator. No explicit setup is needed since the initialization flag ensures proper state during the first use.
| std::string ssgx::utils_t::UUIDGenerator::NewUUID4 | ( | ) |
Generates a new UUID V4 (random-based).
This method is thread-safe and ensures that a unique UUID is generated even when accessed concurrently by multiple threads.
| std::runtime_error | Failed in UUID initialization! |