2
0
mirror of https://github.com/searx/searx synced 2025-08-30 14:08:47 +00:00

Merge pull request #2121 from gangural/random-sha256-fix

Fix search error with query 'random sha256'
This commit is contained in:
Alexandre Flament
2020-08-08 10:45:48 +02:00
committed by GitHub

View File

@@ -37,7 +37,7 @@ def random_int():
def random_sha256(): def random_sha256():
m = hashlib.sha256() m = hashlib.sha256()
m.update(b''.join(random_characters())) m.update(''.join(random_characters()).encode())
return unicode(m.hexdigest()) return unicode(m.hexdigest())