Skip to content

Commit

Permalink
lighten and add power
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Nov 20, 2017
1 parent 909aa27 commit 6afda82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -23,12 +23,15 @@ Deprecations:
Changes:
^^^^^^^^


- Re-added a subset of the ``OpenSSL.rand`` module.
This subset allows conscientious users to reseed the OpenSSL CSPRNG after fork.
`#708 <https://github.com/pyca/pyopenssl/pull/708>`_
- Corrected a use-after-free when reusing an issuer or subject from an ``X509`` object after the underlying object has been mutated.
`#709 <https://github.com/pyca/pyopenssl/pull/709>`_

----


17.3.0 (2017-09-14)
-------------------
Expand Down
5 changes: 1 addition & 4 deletions src/OpenSSL/rand.py
Expand Up @@ -5,9 +5,6 @@
from OpenSSL._util import lib as _lib


_builtin_bytes = bytes


def add(buffer, entropy):
"""
Mix bytes from *string* into the PRNG state.
Expand All @@ -25,7 +22,7 @@ def add(buffer, entropy):
:return: :obj:`None`
"""
if not isinstance(buffer, _builtin_bytes):
if not isinstance(buffer, bytes):
raise TypeError("buffer must be a byte string")

if not isinstance(entropy, int):
Expand Down

0 comments on commit 6afda82

Please sign in to comment.