Browse Source

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

Fix search error with query 'random sha256'
Alexandre Flament 4 years ago
parent
commit
c3054a10a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/answerers/random/answerer.py

+ 1 - 1
searx/answerers/random/answerer.py

@@ -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())