short-unique-id - v4.4.2

Index

Classes

Interfaces

Variables

Variables

Const DEFAULT_UUID_LENGTH

DEFAULT_UUID_LENGTH: number = 6

6 was chosen as the default UUID length since for most cases it will be more than aptly suitable to provide millions of UUIDs with a very low probability of producing a duplicate UUID.

For example, with a dictionary including digits from 0 to 9, as well as the alphabet from a to z both in UPPER and lower case, the probability of generating a duplicate in 1,000,000 rounds is ~0.00000002, or about 1 in 50,000,000.