Handbook
Glossary
uuid5 ( namespace name -- string )
UUID (Universally Unique Identifier)
Prev:
uuid4 ( -- string )
Vocabulary
uuid
Inputs
namespace
a
string
name
a
string
Outputs
string
a UUID string
Word description
Generates a UUID (version 5) from the SHA-1 hash of a namespace UUID and a name.
Definition
USING:
checksums
checksums.sha
endian
kernel
sequences
uuid.private
;
IN:
uuid
:
uuid5
( namespace name -- string )
[
uuid-parse
]
dip
append
sha1
checksum-bytes
16
index-or-length
head
be>
5
(version)
uuid>string
;