Navigation Menu

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 bee75ee commit 6e8869e
Showing 1 changed file with 1 addition and 4 deletions.
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 6e8869e

Please sign in to comment.