core/encoding/uuid/legacy
uuid_legacy
Types
1Constants
2Procedures
4generate_v3_bytes
generate_v3_bytes :: proc(namespace: Identifier, name: []u8) -> (result: Identifier)SourceGenerate a version 3 UUID.
This UUID is generated with a MD5 hash of a name and a namespace.
Inputs:
- namespace: An
Identifierthat is used to represent the underlying namespace.
This can be any one of the Namespace_* values provided in the uuid package.
- name: The byte slice which will be hashed with the namespace.
Returns:
- result: The generated UUID.
generate_v3_string
generate_v3_string :: proc(namespace: Identifier, name: string) -> (result: Identifier)SourceGenerate a version 3 UUID.
This UUID is generated with a MD5 hash of a name and a namespace.
Inputs:
- namespace: An
Identifierthat is used to represent the underlying namespace.
This can be any one of the Namespace_* values provided in the uuid package.
- name: The string which will be hashed with the namespace.
Returns:
- result: The generated UUID.
generate_v5_bytes
generate_v5_bytes :: proc(namespace: Identifier, name: []u8) -> (result: Identifier)SourceGenerate a version 5 UUID.
This UUID is generated with a SHA1 hash of a name and a namespace.
Inputs:
- namespace: An
Identifierthat is used to represent the underlying namespace.
This can be any one of the Namespace_* values provided in the uuid package.
- name: The byte slice which will be hashed with the namespace.
Returns:
- result: The generated UUID.
generate_v5_string
generate_v5_string :: proc(namespace: Identifier, name: string) -> (result: Identifier)SourceGenerate a version 5 UUID.
This UUID is generated with a SHA1 hash of a name and a namespace.
Inputs:
- namespace: An
Identifierthat is used to represent the underlying namespace.
This can be any one of the Namespace_* values provided in the uuid package.
- name: The string which will be hashed with the namespace.
Returns:
- result: The generated UUID.