This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Arfrever, christian.heimes, loewis
Date 2012-06-27.21:11:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340831487.44.0.474109149569.issue15206@psf.upfronthosting.co.za>
In-reply-to
Content
IMHO it's all about managing expectations. As libuuid is using a crypto RNG before it falls back to a less suitable RNG. We should follow this example. I couldn't find any information about the implementation details of Window's UuidCreate().

I agree that we can disagree on my reasoning. However the usage of random.random() and random.randint() in uuid is flawed for a second reason. The default instance random._inst doesn't compensate for fork(). After fork() the two processes share the same random state and thus will create the same uuids. For example tempfile._RandomNameSequence re-creates the RNG when it notices a different PID.
History
Date User Action Args
2012-06-27 21:11:27christian.heimessetrecipients: + christian.heimes, loewis, Arfrever
2012-06-27 21:11:27christian.heimessetmessageid: <1340831487.44.0.474109149569.issue15206@psf.upfronthosting.co.za>
2012-06-27 21:11:26christian.heimeslinkissue15206 messages
2012-06-27 21:11:26christian.heimescreate