iCyberon / pg_hashids

Short unique id generator for PostgreSQL, using hashids
MIT License
287 stars 25 forks source link

Convert hash for -1 changes the size of hash #32

Open KaranParwani opened 2 years ago

KaranParwani commented 2 years ago

I have installed this extension for converting ids into a hash in my database, we give the size into 3rd parameter after giving salt and alphabets(including letters) So when I encode -1 in hash it is giving me a length of 16 digits, I don't know why it is giving me a length of 16 characters.

Thanks