Christian Heimes added the comment: Am 22.08.2013 15:20, schrieb STINNER Victor: > > STINNER Victor added the comment: > > PySSL_RAND_atfork_parent() still uses getpid(). This number is not > very random in the *parent* process :-)
That's fine and doesn't diminish the properties of the PRNG. In fact the patch could use a hard coded value to perturb the PRNG. It's only important to modify the PRNG state of the *parent* process so that recycled PIDs of *child* processes don't lead to repeated pseudo-random values. PID, time and stack are just hard-to-guess properties of the process. That's all. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18747> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com