STINNER Victor added the comment:

Why does _get_candidate_names() need a lock? Can't we produce enough entropy to 
reduce the risk of duplicate names in two threads? Maybe we should use 
SystemRandom instead, which would also avoid the need to testing if the pid 
changed.

With one generator per thread, it would prevent the bug no?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30030>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to