hashids.java
hashids.java copied to clipboard
Negative Long Number
Hey,
I just figured out your script does not support negative numbers. Long, however, includes a full range of negative numbers. I see 2 options to solve the issue:
- Choose another datatype to restrict to positive numbers.
- Improve the code, e.g., by mapping long values to big positive numbers.
I will try to figure out the latter.
Cheers