Handbook
Glossary
uuid1 ( -- string )
UUID (Universally Unique Identifier)
Next:
uuid3 ( namespace name -- string )
Vocabulary
uuid
Inputs
None
Outputs
string
a UUID string
Word description
Generates a UUID (version 1) from the host ID, sequence number, and current time.
Definition
USING:
kernel
math
math.bitwise
uuid.private
;
IN:
uuid
:
uuid1
( -- string )
(timestamp)
[
32
bits
16
shift
]
[
-32
shift
16
bits
+
1
]
[
-48
shift
]
tri
1
(clock)
48
shift
(hardware)
+
(uuid)
uuid>string
;