[issue8621] uuid.uuid4() generates non-unique values on OSX

Ronald Oussoren report at bugs.python.org
Tue Jun 22 11:59:43 CEST 2010


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

Bill, please test the patch below on a 10.5 system:


Index: Lib/uuid.py
===================================================================
--- Lib/uuid.py	(revision 82148)
+++ Lib/uuid.py	(working copy)
@@ -416,7 +416,7 @@
     import sys
     if sys.platform == 'darwin':
         import os
-        if int(os.uname()[2].split('.')[0]) >= 10:
+        if int(os.uname()[2].split('.')[0]) >= 9:
             _uuid_generate_random = _uuid_generate_time = None
 
     # On Windows prior to 2000, UuidCreate gives a UUID containing the


This extends the workaround for the bug in the system uuid libraries to OSX 10.5.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8621>
_______________________________________


More information about the Python-bugs-list mailing list