This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mortenab
Recipients mortenab
Date 2008-12-09.10:13:32
SpamBayes Score 2.5400055e-05
Marked as misclassified No
Message-id <>
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 shows the problem - _buffer is the global buffer:

    # When the system provides a version-4 UUID generator, use it.
    if _uuid_generate_random:
        return UUID(bytes=_buffer.raw)
Date User Action Args
2008-12-09 10:13:33mortenabsetrecipients: + mortenab
2008-12-09 10:13:33mortenabsetmessageid: <>
2008-12-09 10:13:32mortenablinkissue4607 messages
2008-12-09 10:13:32mortenabcreate