educative.io

Why can't we just generate random key?


#1

Why can’t we just generate a random key to be used in the short URL instead of using KGS? If a key already exists, we can just generate another one. The chances that there’ll be a need to regenerate the key more than 1 time are very little.