Manual Pages for UNIX Darwin command on man uuid_generate_random
MyWebUniversity

Manual Pages for UNIX Darwin command on man uuid_generate_random

UUIDGENERATE(3) UUIDGENERATE(3)

NAME

uuidgenerate, uuidgeneraterandom, uuidgeneratetime - create a new

unique UUID value

SYNOPSIS

##iinncclluuddee <>

vvooiidd uuuuiiddggeenneerraattee((uuuuiiddtt out));; vvooiidd uuuuiiddggeenneerraatteerraannddoomm((uuuuiiddtt out));; vvooiidd uuuuiiddggeenneerraatteettiimmee((uuuuiiddtt out));;

DESCRIPTION

The uuuuiiddggeenneerraattee function creates a new universally unique identifier

(UUID). The uuid will be generated based on high-quality randomness

from /dev/urandom, if available. If it is not available, then uuuuiiddggeenneerraattee will use an alternative algorithm which uses the current time, the local ethernet MAC address (if available), and random data

generated using a pseudo-random generator.

The uuuuiiddggeenneerraatteerraannddoomm function forces the use of the all-random UUID

format, even if a high-quality random number generator (i.e.,

/dev/urandom) is not available, in which case a pseudo-random generator

will be subsituted. Note that the use of a pseudo-random generator may

compromise the uniqueness of UUID's generated in this fashion.

The uuuuiiddggeenneerraatteettiimmee function forces the use of the alternative algo-

rithm which uses the current time and the local ethernet MAC address

(if available). This algorithm used to be the default one used to gen-

erate UUID, but because of the use of the ethernet MAC address, it can leak information about when and where the UUID was generated. This can

cause privacy problems in some applications, so the uuuuiiddggeenneerraattee func-

tion only uses this algorithm if a high-quality source of randomness is

not available. The UUID is 16 bytes (128 bits) long, which gives approximately

3.4x10^38 unique values (there are approximately 10^80 elemntary parti-

cles in the universe according to Carl Sagan's Cosmos). The new UUID can reasonably be considered unique among all UUIDs created on the local system, and among UUIDs created on other systems in the past and in the future. RREETTUURRNN VVAALLUUEE The newly created UUID is returned in the memory location pointed to by out. CCOONNFFOORRMMIINNGG TTOO OSF DCE 1.1 AUTHOR Theodore Y. Ts'o AVAILABILITY http://e2fsprogs.sourceforge.net/

SEE ALSO

uuuuiidd(3), uuuuiiddggeenn(1), uuuuiiddcclleeaarr(3), uuuuiiddccoommppaarree(3), uuuuiiddccooppyy(3), uuuuiiddiissnnuullll(3), uuuuiiddppaarrssee(3), uuuuiidduunnppaarrssee(3) 1.36 April 2004 UUIDGENERATE(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™