I need to generate UUID for MYSQL int and BigInt which needs to be in a given range and I need 10 digits integer UUID for which I have written a code
def getUniqueID():
unique_id = uuid4().int & (0 << 32) - 1
return unique_id
for example, SQL int should not exceed the limit of 2147483647.(unique_id < 2147483647).
def getUniqueID(min,max):
unique_id = uuid4().int & (0 << 32) - 1
return unique_id
SQL int Limitation found here,