From 933b14fd8c2821c9369f61d7a84a10ea745a9804 Mon Sep 17 00:00:00 2001 From: David Davis Date: Fri, 11 Sep 2020 09:40:42 -0400 Subject: [PATCH] Use sha256 to hash lists --- drf_spectacular/plumbing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drf_spectacular/plumbing.py b/drf_spectacular/plumbing.py index 4ffbc8c3..71d970e9 100644 --- a/drf_spectacular/plumbing.py +++ b/drf_spectacular/plumbing.py @@ -567,7 +567,7 @@ def load_enum_name_overrides(): def list_hash(lst): - return hashlib.blake2b(json.dumps(list(lst), sort_keys=True).encode()).hexdigest() + return hashlib.sha256(json.dumps(list(lst), sort_keys=True).encode()).hexdigest() def resolve_regex_path_parameter(path_regex, variable, available_formats):