Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2256 from IgorStepanov/pr-2243-changelog
Browse files Browse the repository at this point in the history
add changelog for PR #2243
merged-on-behalf-of: Jacob Carlborg <jacob-carlborg@users.noreply.github.com>
  • Loading branch information
dlang-bot authored Jul 28, 2018
2 parents 5e2d2b7 + 00e2ec5 commit 52d3fe0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions changelog/typeinfo-gethash.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
`TypeInfo.getHash` now uses `core.internal.hash.hashOf` functions for hash computing

Now `typeid(typeof(var)).getHash(&var)` should be always equal `hashOf(val)`.
hashOf uses MurmurHash3 algorithm for bitwise hashing, including string hashing.
Old implementation used polynomial hash for string hashing, which often provided
lexicographical order of strings in associative array. However AA doesn't guarantee
some specific order of elements, thus tests which rely on it should be changed.

0 comments on commit 52d3fe0

Please sign in to comment.