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. Namespace is X.500 DN.

uuid_generate_name(x)

Arguments

x

Character vector.

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"))
#> [1] "7e9cba5c-eeaf-5d1b-b2d4-c5c42a7cdb4c" #> [2] "07fa16ce-545c-592c-9bf8-4e189c3ef309"