diff --git a/src/OpenSSL/rand.py b/src/OpenSSL/rand.py index 72c678c97..d2c17673e 100644 --- a/src/OpenSSL/rand.py +++ b/src/OpenSSL/rand.py @@ -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. @@ -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):