Facundo Batista facu...@taniquetil.com.ar added the comment:
Yes, _buffer is not longer global.
Thanks for the report!
--
nosy: +facundobatista
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
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 =
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