CreateUUID

CreateUUID[]

creates a random, universally unique UUID string.

CreateUUID["base"]

appends a UUID string to the specified base string.

Details

  • CreateUUID[] gives a UUID based on a 128-bit number, formatted as 32 hexadecimal digits grouped in the format 8-4-4-4-12.
  • CreateUUID[] is intended to produce a globally unique string that will statistically never be repeated.
  • CreateUUID[] makes use of detailed local system and session information, as well as absolute time.
  • CreateUUID[] is intended to generate a random distribution of UUIDs.
  • Some Wolfram System features depend on assuming the UUIDs will not collide.

Examples

open allclose all

Basic Examples  (1)

Create a random UUID:

Include a custom string:

Properties & Relations  (1)

Convert a UUID to a 128-bit integer:

Introduced in 2014
 (10.0)