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

Commit 00e2ec5

Browse files
committed
add changelog for PR #2243
1 parent 5e2d2b7 commit 00e2ec5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

changelog/typeinfo-gethash.dd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
`TypeInfo.getHash` now uses `core.internal.hash.hashOf` functions for hash computing
2+
3+
Now `typeid(typeof(var)).getHash(&var)` should be always equal `hashOf(val)`.
4+
hashOf uses MurmurHash3 algorithm for bitwise hashing, including string hashing.
5+
Old implementation used polynomial hash for string hashing, which often provided
6+
lexicographical order of strings in associative array. However AA doesn't guarantee
7+
some specific order of elements, thus tests which rely on it should be changed.

0 commit comments

Comments
 (0)