Learn R Programming

arkhe (version 0.2.2)

generate_uuid: UUID

Description

generate_uuid generates a universally unique identifier (UUID Version 4 and Variant 1).

Usage

generate_uuid(seed = NULL)

Arguments

seed

A single integer specifying the seeds. If NULL (the default) the seed will be re-initialized.

x

A character string (UUID).

Value

A 36 characters long character string.

Details

As it relies on R's internal random number generators and so will suffer from the use of set.seed in a session, the seed is re-initialized during execution (unless seed is not NULL). To prevent any side effects, the random number generator (RNG) state is saved and restored when the function exits.

See Also

set.seed