Skip to content

Commit

Permalink
Merge pull request #1405 from Friendseeker/remove-xor-hash-1
Browse files Browse the repository at this point in the history
[1.x] Use `hashCode` instead of XOR hash in `extraHash` computation
  • Loading branch information
eed3si9n authored Sep 27, 2024
2 parents a1768b2 + 6cbcb28 commit 4d4c4ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ private final class AnalysisCallback(
val externalParentsAPI = externalParents.map(analysis.apis.externalAPI)
val internalParentsAPI = internalParents.map(analysis.apis.internalAPI)
val parentsHashes = (externalParentsAPI ++ internalParentsAPI).map(_.extraHash())
parentsHashes.fold(currentExtraHash)(_ ^ _)
(parentsHashes + currentExtraHash).hashCode()
case None => currentExtraHash
}
}
Expand Down

0 comments on commit 4d4c4ac

Please sign in to comment.