[Python-Dev] PEP 506 secrets module (original) (raw)
Victor Stinner victor.stinner at gmail.com
Fri Apr 15 05:39:02 EDT 2016
- Previous message (by thread): [Python-Dev] PEP 506 secrets module
- Next message (by thread): [Python-Dev] PEP 506 secrets module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] PEP 506 secrets module
- Next message (by thread): [Python-Dev] PEP 506 secrets module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]