mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:29:50 +00:00
[kernel] Fix non-deterministic output generation
Bug: http://dartbug.com/34086 Change-Id: I0d8037f1c6db27acb21148576da6a3b58bfb69a6 Reviewed-on: https://dart-review.googlesource.com/68940 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
This commit is contained in:
parent
85d85246ad
commit
5dd2aca7fe
|
@ -4448,7 +4448,10 @@ class _PrivateName extends Name {
|
|||
Library get library => libraryName.asLibrary;
|
||||
|
||||
static int _computeHashCode(String name, Reference libraryName) {
|
||||
return 131 * name.hashCode + 17 * libraryName.hashCode;
|
||||
// TODO(dmitryas): Factor in [libraryName] in a non-deterministic way into
|
||||
// the result. Note, the previous code here was the following:
|
||||
// return 131 * name.hashCode + 17 * libraryName.asLibrary._libraryId;
|
||||
return name.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue