I am looking at a piece of code, and i can see that the following code has been written which generates a string, and that string has been set as the primary key of the table.
return new BigInteger(UUID.randomUUID().toString().replaceAll("-", ""), 16).toString(36);
Till now, there are lots of records and they seem to be unique as the primary key constraint is not violated.
I understand that the number will be random but will it be unique?
thanks
Tuco