[yt-svn] commit/yt: ngoldbaum: Merged in xarthisius/yt (pull request #1723)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Aug 27 09:26:17 PDT 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/5538c6857f6d/
Changeset: 5538c6857f6d
Branch: yt
User: ngoldbaum
Date: 2015-08-27 16:25:57+00:00
Summary: Merged in xarthisius/yt (pull request #1723)
Add proper start value for FNV hash
Affected #: 1 file
diff -r 967f1ce10f1dd7ed14c96078a5d1b2dd278819d8 -r 5538c6857f6df478eaeb7074d2896b18f9c550d4 yt/geometry/selection_routines.pyx
--- a/yt/geometry/selection_routines.pyx
+++ b/yt/geometry/selection_routines.pyx
@@ -607,7 +607,7 @@
def __hash__(self):
# https://bitbucket.org/yt_analysis/yt/issues/1052/field-access-tests-fail-under-python3
# http://www.eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx
- cdef np.int64_t hash_val = 0
+ cdef np.int64_t hash_val = 2166136261
for v in self._hash_vals() + self._base_hash():
# FNV hash cf. http://www.isthe.com/chongo/tech/comp/fnv/index.html
hash_val = (hash_val * 16777619) ^ hash(v)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list