Message274670
| Author |
vstinner |
| Recipients |
Decorater, ncoghlan, python-dev, vstinner |
| Date |
2016年09月06日.23:43:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1473205439.81.0.753385913629.issue27776@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Nick: "+1 for a fallback in the SIPHash initialisation as well."
Sorry but I don't know a simple function to implement this. We might use the LCG RNG, but it's not really designed to be "secure". I don't think that it makes sense to initialize a shiny SIPHash with a crappy LCG RNG :-)
So I skip my turn on this idea and let others implement them if anyone consider that it's worth it.
To be clear: Python 3 doesn't start when getrandom() and /dev/urandom are not available or don't work, but it's not something new. Python 3.1 already starts with:
fd = open("/dev/urandom", O_RDONLY);
if (fd < 0)
Py_FatalError("Failed to open /dev/urandom");
--
os.urandom() is now blocking, I close the issue. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年09月06日 23:43:59 | vstinner | set | recipients:
+ vstinner, ncoghlan, python-dev, Decorater |
| 2016年09月06日 23:43:59 | vstinner | set | messageid: <1473205439.81.0.753385913629.issue27776@psf.upfronthosting.co.za> |
| 2016年09月06日 23:43:59 | vstinner | link | issue27776 messages |
| 2016年09月06日 23:43:59 | vstinner | create |
|