]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-88046: remove impossible conditional import for `_ssl.RAND_egd` (#139648)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Thu, 9 Oct 2025 09:14:36 +0000 (11:14 +0200)
committerGitHub <noreply@github.com>
Thu, 9 Oct 2025 09:14:36 +0000 (11:14 +0200)
`_ssl.RAND_egd` was removed in b8d0fa035d74ae6ae00794c9af636b427c5dc650.

Doc/library/ssl.rst
Lib/ssl.py

index 0f2c2b89295cdf2b4461c4019094b87e66129639..5b59a0698e4c42d24ee3b5408491d0605cb971f1 100644 (file)
@@ -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, /)
 
index 493ea901d9332440da7f21d492e4f940745bd1f2..7ad7969a8217f840e9ce39f8f7c2f2e4af952251 100644 (file)
@@ -110,11 +110,6 @@ from _ssl import (
     )
 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