SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::lib::UuidGenerator Class Referencefinal

Generates UUIDs from C++11 <random> module. More...

#include <UuidGenerator.h>

Public Member Functions

 UuidGenerator ()
 Instantiates a new uuid generator with a base seed.
 
 UuidGenerator (uint64_t seed)
 Instantiates a new uuid generator with a provided seed.
 
Uuid generate ()
 Generates a new uuid.
 

Detailed Description

Generates UUIDs from C++11 <random> module.

Constructor & Destructor Documentation

◆ UuidGenerator()

spark::lib::UuidGenerator::UuidGenerator ( uint64_t seed)
explicit

Instantiates a new uuid generator with a provided seed.

Parameters
seedThe seed to use for the random generator.

Member Function Documentation

◆ generate()

Uuid spark::lib::UuidGenerator::generate ( )

Generates a new uuid.

Returns
The generated uuid.