proquint {ids} | R Documentation |
Generate random proquint identifiers
Description
Generate random "proquint" identifiers. "proquint" stands for
PRO-nouncable QUINT-uplets and were described by Daniel Wilkerson
in https://arxiv.org/html/0901.4016. Each "word" takes one
of 2^16
possibilities. A four word proquint has a keyspace
of 10^19
possibilities but takes only 23 characters.
Proquint identifiers can be interchanged with integers (though
this is totally optional); see proquint_to_int
and
the other functions documented on that page.
Usage
proquint(n = 1, n_words = 2L, use_cache = TRUE, use_openssl = FALSE)
Arguments
n |
number of ids to return. If |
n_words |
The number of words for each identifier; each word
has |
use_cache |
Because there are relatively few combinations per
word, and because constructing short strings is relatively
expensive in R, it may be useful to cache all 65536 possible
words. If |
use_openssl |
Use openssl for random number generation, with the primary effect that the identifiers will not be affected by R's random seed (at a small speed cost). |
Details
In the abstract of their paper, Wilkerson introduces proquints:
"Identifiers (IDs) are pervasive throughout our modern life. We suggest that these IDs would be easier to manage and remember if they were easily readable, spellable, and pronounceable. As a solution to this problem we propose using PRO-nouncable QUINT-uplets of alternating unambiguous consonants and vowels: proquints."
Examples
# A single, two word, proquint
proquint()
# Longer identifier:
proquint(n_words = 5)
# More identifiers
proquint(10)