[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Aug 27 09:26:10 PDT 2015


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/af825a35c65c/
Changeset:   af825a35c65c
Branch:      yt
User:        xarthisius
Date:        2015-08-26 17:56:11+00:00
Summary:     Add proper start value for FNV hash
Affected #:  1 file

diff -r 580e8d4ccc0ecd2f0d8198307cf0d074b0b735cb -r af825a35c65c72d958b4f42d3806db5fe0f70561 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)


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