2 ms·
There's no info on how this actually works. Actually I have no idea what it does in the first place.. From the FAQ: > How can I make my IDs unique? > The libr
by jbverschoor 3y ago
There's no info on how this actually works. Actually I have no idea what it does in the first place.. From the FAQ:
> How can I make my IDs unique?
> The library accepts a custom alphabet from which it can generate IDs. Simply pre-shuffle the default alphabet that's provided.
I also have no idea how to use the library.. What are the 3 numbers parameters for encode()?
The actual code: https://github.com/sqids/sqids-ruby/blob/main/lib/sqids.rb https://github.com/sqids/sqids-ruby/blob/main/lib/sqids.rb
I'd simply base-58 a GUID instead. At least you'll know what kind of constraints / sorting the IDs will have.