Skip to content

Commit

Permalink
Merge pull request #148 from daviddavis/list-hash-sha256
Browse files Browse the repository at this point in the history
Use sha256 to hash lists
  • Loading branch information
tfranzel authored Sep 11, 2020
2 parents 34774a4 + 933b14f commit 37f8a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drf_spectacular/plumbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 37f8a64

Please sign in to comment.