https://github.com/python/cpython/commit/197c610a1e8e396e354c10f6f5dd60ed6548be77
commit: 197c610a1e8e396e354c10f6f5dd60ed6548be77
branch: main
author: Bénédikt Tran <[email protected]>
committer: picnixz <[email protected]>
date: 2025-10-09T11:14:36+02:00
summary:
gh-88046: remove impossible conditional import for `_ssl.RAND_egd` (#139648)
`_ssl.RAND_egd` was removed in b8d0fa035d74ae6ae00794c9af636b427c5dc650.
files:
M Doc/library/ssl.rst
M Lib/ssl.py
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 0f2c2b89295cdf..5b59a0698e4c42 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -354,9 +354,8 @@ Random generation
.. function:: RAND_status()
Return ``True`` if the SSL pseudo-random number generator has been seeded
- with 'enough' randomness, and ``False`` otherwise. You can use
- :func:`ssl.RAND_egd` and :func:`ssl.RAND_add` to increase the randomness of
- the pseudo-random number generator.
+ with 'enough' randomness, and ``False`` otherwise. Use :func:`ssl.RAND_add`
+ to increase the randomness of the pseudo-random number generator.
.. function:: RAND_add(bytes, entropy, /)
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 493ea901d93324..7ad7969a8217f8 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -110,11 +110,6 @@
)
from _ssl import txt2obj as _txt2obj, nid2obj as _nid2obj
from _ssl import RAND_status, RAND_add, RAND_bytes
-try:
- from _ssl import RAND_egd
-except ImportError:
- # RAND_egd is not supported on some platforms
- pass
from _ssl import get_sigalgs
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]