[issue4607] uuid behavior with multiple threads
STINNER Victor
report at bugs.python.org
Tue Dec 9 11:32:01 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> 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_buffer(16)
_uuid_generate_random(_buffer)
return UUID(bytes=_buffer.raw)
...
Changeset: r67318. The changeset was not related to this issue, but
#4363 (Make uuid module functions usable without ctypes).
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4607>
_______________________________________
More information about the Python-bugs-list
mailing list