/ Published in: Python
Expand |
Embed | Plain Text
import os def unique_id(): return os.urandom(10).encode('hex') print " Printing Unique_id" a=unique_id() print a OR import uuid print uuid.uuid4()
You need to login to post a comment.
import os def unique_id(): return os.urandom(10).encode('hex') print " Printing Unique_id" a=unique_id() print a OR import uuid print uuid.uuid4()
You need to login to post a comment.