Classes | |
| struct | uuid_state |
| Data type for UUID generator persistent state. More... | |
Functions | |
| void | format_uuid_v1 (uuid_upnp *uid, uint16_t clock_seq, uuid_time_t timestamp, uuid_node_t node) |
| Make a UUID from the timestamp, clockseq, and node ID. | |
| int | read_state (uint16_t *clockseq, uuid_time_t *timestamp, uuid_node_t *node) |
| Read UUID generator state from non-volatile store. | |
| void | write_state (uint16_t clockseq, uuid_time_t timestamp, uuid_node_t node) |
| Save UUID generator state back to non-volatile storage. | |
| void | get_current_time (uuid_time_t *timestamp) |
| Get time as 60 bit 100ns ticks since whenever. | |
| uint16_t | true_random () |
| generate a crypto-quality random number. This sample doesn't do that. | |
| void | format_uuid_v3 (uuid_upnp *uid, unsigned char hash[16]) |
| Make a UUID from a (pseudo)random 128 bit number. | |
Variables | |
| pthread_mutex_t | uuid_mutex |
| Mutex to synchronize the uuid creation process. | |
| uuid_state | st |
| UUID generator persistent state. | |
| int | stateInited {0} |
| Flag if UUID generator persistent state is initiated. | |
| struct anonymous_namespace{uuid.cpp}::uuid_state |
Collaboration diagram for anonymous_namespace{uuid.cpp}::uuid_state:| Class Members | ||
|---|---|---|
| uuid_time_t | ts |
Saved timestamp. |
| uuid_node_t | node |
Saved node ID. |
| uint16_t | cs |
Saved clock sequence. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| pthread_mutex_t anonymous_namespace{uuid.cpp}::uuid_mutex |
| uuid_state anonymous_namespace{uuid.cpp}::st |