Search code examples
guidlivecodehypercard

How do I create a UUID (GUID) in Livecode (or HyperTalk)?


How do I create a UUID (= Universally unique identifier, or GUID = Globally Unique Identifier, Microsoft speak) in Livecode or Hypercard?

The aim of UUIDs is to give practically unique keys to pieces of information without a central coordination.

References


Solution

  • In LiveCode 6.1 (released today) you can create a uuid using the uuid function. Type 4 random uuid is the default and type 3 and 5 digest based uuids are also implemented.