This sample implementation generates a random node ID * * in lieu of a system dependent call to get IEEE node ID. */
| 285 | /* This sample implementation generates a random node ID * |
| 286 | * in lieu of a system dependent call to get IEEE node ID. */ |
| 287 | static 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 |
no test coverage detected