From c3af520c336b53aafaa227fb62439ff3a47e9460 Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 4 Aug 2020 15:47:41 +0300 Subject: [PATCH] Fix search error with query 'random sha256' --- searx/answerers/random/answerer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())