mirror of
https://github.com/python/cpython.git
synced 2026-04-05 03:21:05 +00:00
merge 3.6 (#29085)
This commit is contained in:
commit
e70ca463eb
2 changed files with 4 additions and 1 deletions
|
|
@ -734,6 +734,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #29085: Allow random.Random.seed() to use high quality OS randomness
|
||||
rather than the pid and time.
|
||||
|
||||
- Issue 28923: Remove editor artifacts from Tix.py.
|
||||
|
||||
- Issue #29055: Neaten-up empty population error on random.choice()
|
||||
|
|
|
|||
|
|
@ -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