diff --git a/common/djangoapps/util/memcache.py b/common/djangoapps/util/memcache.py index 00aefed0fee..98463ad1e7a 100644 --- a/common/djangoapps/util/memcache.py +++ b/common/djangoapps/util/memcache.py @@ -14,7 +14,7 @@ def fasthash(string): """ Hashes `string` into a string representation of a 128-bit digest. - """ + """ hash_obj = hashlib.new("blake2b", digest_size=16) hash_obj.update(string.encode('utf-8')) return hash_obj.hexdigest()