MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / create_token

Function create_token

Engine/source/core/util/uuid.cpp:124–132  ·  view source on GitHub ↗

dav_create_opaquelocktoken - generates a UUID version 1 token. * Clock_sequence and node_address set to pseudo-random * numbers during init. * * Should postpend pid to account for non-seralized creation? */

Source from the content-addressed store, hash-verified

122 * Should postpend pid to account for non-seralized creation?
123 */
124static int create_token(uuid_state *st, xuuid_t *u)
125{
126 uuid_time_t timestamp;
127
128 get_current_time(&timestamp);
129 format_uuid_v1(u, st->cs, timestamp, st->node);
130
131 return 1;
132}
133
134/*
135 * dav_create_uuid_state - seed UUID state with pseudorandom data

Callers 1

generateMethod · 0.85

Calls 2

get_current_timeFunction · 0.85
format_uuid_v1Function · 0.85

Tested by

no test coverage detected