File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,21 @@ Changelog
4
4
Versions are year-based with a strict backward-compatibility policy.
5
5
The third digit is only for regressions.
6
6
7
+ 24.3.0 (UNRELEASED)
8
+ -------------------
9
+
10
+ Backward-incompatible changes:
11
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
+
13
+ Deprecations:
14
+ ^^^^^^^^^^^^^
15
+
16
+ - Deprecated ``OpenSSL.rand `` - callers should use ``os.urandom() `` instead.
17
+
18
+ Changes:
19
+ ^^^^^^^^
20
+
21
+
7
22
24.2.1 (2024-07-20)
8
23
-------------------
9
24
Original file line number Diff line number Diff line change 2
2
PRNG management routines, thin wrappers.
3
3
"""
4
4
5
+ import warnings
6
+
5
7
from OpenSSL ._util import lib as _lib
6
8
9
+ warnings .warn (
10
+ "OpenSSL.rand is deprecated - you should use os.urandom instead" ,
11
+ DeprecationWarning ,
12
+ stacklevel = 3 ,
13
+ )
14
+
7
15
8
16
def add (buffer : bytes , entropy : int ) -> None :
9
17
"""
You can’t perform that action at this time.
0 commit comments