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

Function get_pseudo_node_identifier

Engine/source/core/util/uuid.cpp:287–294  ·  view source on GitHub ↗

This sample implementation generates a random node ID * * in lieu of a system dependent call to get IEEE node ID. */

Source from the content-addressed store, hash-verified

285/* This sample implementation generates a random node ID *
286 * in lieu of a system dependent call to get IEEE node ID. */
287static void get_pseudo_node_identifier(uuid_node_t *node)
288{
289 unsigned char seed[16];
290
291 get_random_info(seed);
292 seed[0] |= 0x80;
293 memcpy(node, seed, sizeof(uuid_node_t));
294}
295
296/* system dependent call to get the current system time.
297 Returned as 100ns ticks since Oct 15, 1582, but resolution may be

Callers 1

create_uuid_stateFunction · 0.85

Calls 2

get_random_infoFunction · 0.85
memcpyFunction · 0.85

Tested by

no test coverage detected