dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx::Utils::UUIDGenerator Class Reference

Random UUID generator. More...

#include <dfx-utilities/UUIDGenerator.hpp>

Static Public Member Functions

static UUID generate ()
 Generate a new UUID.

Detailed Description

Random UUID generator.

Generates UUID values using a pseudo-random number generator.

The generator:

  • Produces 128-bit UUID values.
  • Is suitable for identifiers, handles, and correlation IDs.
Note
This generator is intentionally simple and does not attempt to encode UUID version or variant fields.

Member Function Documentation

◆ generate()

UUID dfx::Utils::UUIDGenerator::generate ( )
static

Generate a new UUID.

Returns
A newly generated UUID.

Each call returns a UUID filled with pseudo-random bytes. Uniqueness is probabilistic and scoped to the quality of the RNG.

This function is thread-safe as 1 UUIDGenerator instance is created per thread.


The documentation for this class was generated from the following file: