web/request.py
changeset 10671 e08102f45237
parent 10662 10942ed172de
child 10672 f6f425a54a8d
--- a/web/request.py	Thu Oct 01 11:40:23 2015 +0200
+++ b/web/request.py	Tue Oct 13 16:57:09 2015 +0200
@@ -52,7 +52,7 @@
 _MARKER = object()
 
 def build_cb_uid(seed):
-    sha = sha1('%s%s%s' % (time.time(), seed, random.random()))
+    sha = sha1(('%s%s%s' % (time.time(), seed, random.random())).encode('ascii'))
     return 'cb_%s' % (sha.hexdigest())