cache: improve variable name

This commit is contained in:
Willi Ballenthin
2023-01-20 15:26:17 +01:00
parent 99af09fce5
commit 946816e377

View File

@@ -27,7 +27,7 @@ def compute_cache_identifier(rule_content: List[bytes]) -> CacheIdentifier:
hash.update(version.encode("utf-8"))
hash.update(b"\x00")
rule_hashes = list(sorted([hashlib.sha256(rule).hexdigest() for rule in rule_content]))
rule_hashes = list(sorted([hashlib.sha256(buf).hexdigest() for buf in rule_content]))
for rule_hash in rule_hashes:
hash.update(rule_hash.encode("ascii"))
hash.update(b"\x00")