fixing namespace collision
authorWilliam Budington <bill@eff.org>
Wed, 27 Nov 2013 21:24:57 +0000 (13:24 -0800)
committerWilliam Budington <bill@eff.org>
Wed, 27 Nov 2013 21:24:57 +0000 (13:24 -0800)
cryptolog.py

index a603b10..a355ac1 100755 (executable)
@@ -32,9 +32,9 @@ def salt():
     salt_day = now
   return salt_data
 
-def hash_entity(entity, hashed_size, salt=None):
-    salt = salt or salt()
-    return b64encode(HMAC(salt, entity).digest())[:hashed_size]
+def hash_entity(entity, hashed_size, salt_param=None):
+    salt_var = salt_param or salt()
+    return b64encode(HMAC(salt_var, entity).digest())[:hashed_size]
 
 class LogParseError(Exception):
   pass