Is there any function in LUA which would return unique (and not repeated further) value everytime I call it?
In PHP I would use uniqid with more_entropy flag. However, I could not find any analogs for this in LUA.
I had an idea of getting os.time(), converting it to string and attaching value from math.random(-99999, 99999) to the string but this looks retarded for me, huh. Or is that correct way?
I ain’t gonna use for cryptography, but for identifying temporary records in table, if anyone is interested in that :3
Thanks in advance