[issue18747] Re-seed OpenSSL's PRNG after fork

Charles-François Natali report at bugs.python.org
Thu Aug 22 15:27:53 CEST 2013


Charles-François Natali added the comment:

> STINNER Victor added the comment:
>
> PySSL_RAND_atfork_parent() still uses getpid(). This number is not
> very random in the *parent* process :-)

:-)

IMO this patch has been rushed in and should be reverted for now.
It's still not async-signal safe, had typos, plus this problem noted by Victor.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18747>
_______________________________________


More information about the Python-bugs-list mailing list