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:

Wolfram Research (2014), CreateUUID, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateUUID.html.

Text

Wolfram Research (2014), CreateUUID, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateUUID.html.

CMS

Wolfram Language. 2014. "CreateUUID." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CreateUUID.html.

APA

Wolfram Language. (2014). CreateUUID. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CreateUUID.html

BibTeX

@misc{reference.wolfram_2024_createuuid, author="Wolfram Research", title="{CreateUUID}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/CreateUUID.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_createuuid, organization={Wolfram Research}, title={CreateUUID}, year={2014}, url={https://reference.wolfram.com/language/ref/CreateUUID.html}, note=[Accessed: 22-November-2024 ]}