Use hashlib for truly deterministic hashes
It turns out python's built-in hash function uses a random seed that changes per-process, so branch names based on that hash aren't actually deterministic. This changes the hashing algorithm to use a stable hash so we can get consistent results. Bug: 389069356 Change-Id: I1d3241b922005a7bff4d8621dc79dc4551bf264e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6258544 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Devon Loehr <dloehr@google.com>changes/44/6258544/3
parent
ed3da5161f
commit
65aa0a04ff
Loading…
Reference in New Issue