зеркало из https://github.com/mozilla/gecko-dev.git
d7c0c9fd6b
The hashes of certain strings is used indirectly in generating IDL C++ files. Before, we were using the `hash()` function to generate these hashes, which in Python 3 is non-deterministic over subsequent `python3` processes, causing bugs like bug 1635755. Instead, use a specific, deterministic hash to avoid spurious diff failures. The `md5` hash function isn't completely cryptographically secure but the security of the hashes isn't important for us in this case since we're just using them as a per-string identifier. We could use a more robust hash function but there may be performance implications from doing so. Differential Revision: https://phabricator.services.mozilla.com/D74446 |
||
---|---|---|
.. | ||
ipdl | ||
test | ||
Makefile.in | ||
ipdl.py | ||
message-metadata.ini | ||
moz.build | ||
msgtype-components | ||
sync-messages.ini |