[issue4607] uuid behavior with multiple threads

2009-01-10 Thread Facundo Batista
Facundo Batista added the comment: Yes, _buffer is not longer global. Thanks for the report! -- nosy: +facundobatista resolution: -> out of date status: open -> closed ___ Python tracker _

[issue4607] uuid behavior with multiple threads

2008-12-09 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: It looks like the bug is already fixed in Python trunk: def uuid4(): """Generate a random UUID.""" # When the system provides a version-4 UUID generator, use it. if _uuid_generate_random: _buffer = ctypes.create_string_bu

[issue4607] uuid behavior with multiple threads

2008-12-09 Thread Morten Bentsen
New submission from Morten Bentsen <[EMAIL PROTECTED]>: The uuid module uses a single global buffer for storing random values obtained from the system. This can (and does) cause non-uniqueness of generated id's when using the uuid4 function in a multithreaded program. The following snippet sho