A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-April/144199.html below:

[Python-Dev] PEP 506 secrets module

[Python-Dev] PEP 506 secrets module [Python-Dev] PEP 506 secrets moduleVictor 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4