Sep-10-2019, 03:33 PM
Can use uuid.
It provides the uniqueness as it generates ids on the basis of time,Computer hardware (MAC etc.).
It provides the uniqueness as it generates ids on the basis of time,Computer hardware (MAC etc.).
>>> import uuid >>> >>> str(uuid.uuid4())[:6] '5a7fce'
Quote:especially in Python 2.7Then stop using Python 2.7