Commit 7c5dc912 authored by Raymond Hettinger's avatar Raymond Hettinger

Avoid codec spelling issues by just using the utf-8 default.

parents b596dc7c f90ba8a9
...@@ -114,7 +114,7 @@ class Random(_random.Random): ...@@ -114,7 +114,7 @@ class Random(_random.Random):
if version == 2: if version == 2:
if isinstance(a, (str, bytes, bytearray)): if isinstance(a, (str, bytes, bytearray)):
if isinstance(a, str): if isinstance(a, str):
a = a.encode("utf-8") a = a.encode()
a += _sha512(a).digest() a += _sha512(a).digest()
a = int.from_bytes(a, 'big') a = int.from_bytes(a, 'big')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment