summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/answerers/random/answerer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/answerers/random/answerer.py b/searx/answerers/random/answerer.py
index 2dfb08804..4aafa2cfd 100644
--- a/searx/answerers/random/answerer.py
+++ b/searx/answerers/random/answerer.py
@@ -37,7 +37,7 @@ def random_int():
def random_sha256():
m = hashlib.sha256()
- m.update(b''.join(random_characters()))
+ m.update(''.join(random_characters()).encode())
return unicode(m.hexdigest())