Author vstinner
Recipients pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2017-04-14.13:30:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492176651.14.0.528587077142.issue30030@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2017-04-14 13:30:51vstinnersetrecipients: + vstinner, rhettinger, pitrou, serhiy.storchaka
2017-04-14 13:30:51vstinnersetmessageid: <1492176651.14.0.528587077142.issue30030@psf.upfronthosting.co.za>
2017-04-14 13:30:51vstinnerlinkissue30030 messages
2017-04-14 13:30:50vstinnercreate