public static
|
|
public static
string
|
#
uuidv4( )
Return a UUID (version 4) using random bytes Note that version 4 follows the format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where y is one of: [8, 9, A, B] Return a UUID (version 4) using random bytes Note that version 4 follows the format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where y is one of: [8, 9, A, B] We use (random_bytes(1) & 0x0F) | 0x40 to force the first character of hex value to always be 4 in the appropriate position. For 4: http://3v4l.org/q2JN9 For Y: http://3v4l.org/EsGSU For the whole shebang: http://3v4l.org/BkjBc Returns
string
Link |