uuid: Generate a character vector of UUID4s

Description Usage Arguments Value See Also Examples

View source: R/uuid.R

Description

A UUID4 is a random 128-bit integer with 6 bits containing fixed version information. They are surfaced to R as a character vector containing the hexadecimal representation. UUIDs are generated with a PCG random number generator, separate from R's built-in RNGs, so set.seed() has no effect on uuid().

Usage

1
uuid(n = 1L)

Arguments

n

number of UUIDs to generate

Value

a character vector of length n

See Also

RFC 4122 for the specification. http://www.pcg-random.org for the RNG used.

Examples

1
2
3
library(uuid4)

uuid() # a single UUID4

mikmart/uuid4 documentation built on Nov. 4, 2019, 6:54 p.m.