Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Yes, just a string of random characters - large, small letters and numbers, and for reinsurance, you can check whether it turned out to be unique, if not, then generate it again.
Как вариант, воспользоватся Hashids. Выглядит как случайная строка, но ее можно декодировать в числа (массив например, [1, 2, 3]). Удобно если нужна связь с БД.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question