Message164203
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. |
|
Date |
User |
Action |
Args |
2012-06-27 21:11:27 | christian.heimes | set | recipients:
+ christian.heimes, loewis, Arfrever |
2012-06-27 21:11:27 | christian.heimes | set | messageid: <1340831487.44.0.474109149569.issue15206@psf.upfronthosting.co.za> |
2012-06-27 21:11:26 | christian.heimes | link | issue15206 messages |
2012-06-27 21:11:26 | christian.heimes | create | |
|