New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always use os.urandom for generating uuid4s #69701
Comments
Right now uuid4 can be implemented one of 3 ways:
I propose to simplify this to _just_ use os.urandom always. Reasons:
a_gaynor@miranda: |
(Note that the speed difference would be even bigger on a recent python, 2.7.3 was before the file descriptor was cached for os.urandom) |
On Oct 29, 2015, at 10:30 PM, Alex Gaynor wrote:
If you're hacking on the uuid module, keep in mind bpo-22807 |
This looks like a good idea to me, faster and more secure seems like a total win. |
New changeset 24bdc4940e81 by Benjamin Peterson in branch '2.7': New changeset 70be1f9c9255 by Benjamin Peterson in branch '3.5': New changeset 756d040aa8e8 by Benjamin Peterson in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: