Nick Coghlan added the comment:

+1 for a fallback in the SIPHash initialisation as well.

That's the case where Nathaniel Smith suggested we may want to issue a warning 
that the process shouldn't be used to handle untrusted inputs (since that 
particular remote DoS defence won't be working properly), but the monotonic 
time + the PID should be sufficiently unpredictable seeding for that case 
(since there are plenty of lower hanging fruit for attackers to go after).

For testing, is there some way we could integrate an automated test of the 
deliberately misbehaving _PyOS_UrandomNonBlock into the testembed helper? If we 
can come up with a sensible way to do that, it could potentially help with 
testing the os.getrandom() BlockingIOError generation as well.

----------

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

Reply via email to