uuid_generate_name {RcppUUID} | R Documentation |
Generate UUIDs Version 5
Description
Function generates name-based uuid is derived from content in a namespace. A uuid with identical content shall yield the same uuid. Hashing algorithm is SHA1.
Usage
uuid_generate_name(x, ns = "x500dn")
Arguments
x |
Character vector. |
ns |
Namespace string. Allowed values: dns, url, oid, x500dn. |
Value
Character vector with UUIDs.
Note
This function generates valid uuids for the NA
and empty strings.
References
https://www.boost.org/doc/libs/1_72_0/libs/uuid/doc/uuid.html#Name%20Generator
Examples
# generate name UUIDs
uuid_generate_name(c("one", "two"))
[Package RcppUUID version 1.1.1 Index]