Issue #18756: os.urandom() now uses a lazily-opened persistent file descriptor, so as to avoid using many file descriptors when run in parallel from multiple threads.

This commit is contained in:
Antoine Pitrou 2013-08-31 00:26:02 +02:00
parent 267964c837
commit 4879a963d4
4 changed files with 48 additions and 13 deletions

View file

@ -625,6 +625,7 @@ Py_Finalize(void)
PyDict_Fini();
PySlice_Fini();
_PyGC_Fini();
_PyRandom_Fini();
/* Cleanup Unicode implementation */
_PyUnicode_Fini();