Message291660
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? |
|
Date |
User |
Action |
Args |
2017-04-14 13:30:51 | vstinner | set | recipients:
+ vstinner, rhettinger, pitrou, serhiy.storchaka |
2017-04-14 13:30:51 | vstinner | set | messageid: <1492176651.14.0.528587077142.issue30030@psf.upfronthosting.co.za> |
2017-04-14 13:30:51 | vstinner | link | issue30030 messages |
2017-04-14 13:30:50 | vstinner | create | |
|