uuid: Generate UUIDs

Description Usage Arguments Author(s) Examples

View source: R/uuid.R

Description

Generate UUIDs (Universally Unique IDentifiers). In previous versions this was simply a thin wrapper around uuid::UUIDgenerate, however this was subject to collisions on windows where relatively small numbers of UUIDs generated at the same time could return values that were identical. We now generate only version 4 UUIDs (i.e., random though with particular bits set).

Usage

1
uuid(n = 1, drop_hyphens = FALSE, use_time = NA)

Arguments

n

number of ids to return. If NULL, it instead returns the generating function

drop_hyphens

Drop the hyphens from the UUID?

use_time

Unused.

Author(s)

Rich FitzJohn

Examples

1
2
3
4
5
6
7
8
# Generate one id
ids::uuid()

# Or a bunch
ids::uuid(10)

# More in the style of random_id()
ids::uuid(drop_hyphens = TRUE)

richfitz/ids documentation built on Dec. 13, 2021, 7:07 a.m.