Christian Heimes <li...@cheimes.de> added the comment:

The bug affects multiple platforms. libexpat's expat.h uses slightly different 
autoconf macro names than pyconfig.h. Therefore only platforms that have either 
HAVE_GETRANDOM or _WIN32 defined, use a proper CSPRNG to seed the hash salt.

Since HAVE_SYSCALL_GETRANDOM, HAVE_ARC4RANDOM_BUF, HAVE_ARC4RANDOM, or 
XML_DEV_URANDOM are never defined by Python's pyconfig.h, older Linux 
platforms, any BSD, and any other Unix platform with /dev/urandom fall back to 
a weak Mersenne Twister-like RNG with gettimeofday().tv_usec and getpid() as 
seed.

----------

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

Reply via email to