mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
merge 3.6 (#29085)
This commit is contained in:
commit
e70ca463eb
2 changed files with 4 additions and 1 deletions
|
@ -245,7 +245,7 @@ random_seed(RandomObject *self, PyObject *args)
|
|||
return NULL;
|
||||
|
||||
if (arg == NULL || arg == Py_None) {
|
||||
if (random_seed_urandom(self) >= 0) {
|
||||
if (random_seed_urandom(self) < 0) {
|
||||
PyErr_Clear();
|
||||
|
||||
/* Reading system entropy failed, fall back on the worst entropy:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue