jongpie / ApexUUID

A small library to provide UUID generation and validation in Apex
MIT License
64 stars 23 forks source link

Add support for generating other versions of UUIDs #7

Open jongpie opened 1 year ago

jongpie commented 1 year ago

The current implementation of the code uses v4 of the UUID standard, which is still a very reliable manner of generating a randomized, unique ID. However, there are several newer versions of UUIDs, each with their own use cases. The specs for the newer versions aren't fully finalized, but seem to be I'd like to expand the current code to provide a way to specify which version of UUID is generated.

Some resources that discuss the differences & benefits of some of the new versions:

At the moment, I'm considering these versions:

There are a few other official & unofficial versions, but these seem like the most useful ones to focus on.