[Python-Dev] PEP 506 secrets module (original) (raw)

Victor Stinner victor.stinner at gmail.com
Fri Apr 15 05:39:02 EDT 2016


Hi,

Would it make sense to add a function to generate a random UUID4 (as a string) in secrets?

The current implement in uuid.py of CPython 3.6 already uses os.urandom():

def uuid4(): """Generate a random UUID.""" return UUID(bytes=os.urandom(16), version=4)

Victor



More information about the Python-Dev mailing list