How uuid generator works
A UUID (Universally Unique Identifier), also known as a GUID, is a 128-bit identifier represented as 32 hexadecimal digits in five groups separated by hyphens, like 550e8400-e29b-41d4-a716-446655440000. UUIDs are designed to be globally unique without coordination between systems.
This generator creates version 4 UUIDs, which use random bytes for all 122 bits of variability. It uses the Web Crypto API (crypto.getRandomValues) for cryptographically secure randomness, making the UUIDs suitable for use as database keys, session tokens, and distributed system identifiers.
The probability of a collision is astronomically low: with 122 random bits, you would need to generate over 2.6 quintillion UUIDs before a 50% chance of collision. You can generate up to 100 UUIDs at once.