summaryrefslogtreecommitdiff
path: root/searx/answerers
diff options
context:
space:
mode:
authorVlad <web.user@ukr.net>2020-08-04 15:47:41 +0300
committerVlad <web.user@ukr.net>2020-08-04 15:47:41 +0300
commitc3af520c336b53aafaa227fb62439ff3a47e9460 (patch)
treeeb85f1fed31b2a93780dbe6cfa5fa65339879c30 /searx/answerers
parent1986b5ecacfb3b4b73a160eaa2309e81b609d96b (diff)
downloadsearxng-c3af520c336b53aafaa227fb62439ff3a47e9460.tar.gz
searxng-c3af520c336b53aafaa227fb62439ff3a47e9460.zip
Fix search error with query 'random sha256'
Diffstat (limited to 'searx/answerers')
-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())