Skip to content

Commit

Permalink
change range of hash of tuple to [0, maxint]
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Aug 28, 2014
1 parent ded624f commit d306492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def portable_hash(x):
for i in x:
h ^= portable_hash(i)
h *= 1000003
h &= 0xffffffff
h &= sys.maxint
h ^= len(x)
if h == -1:
h = -2
Expand Down

0 comments on commit d306492

Please sign in to comment.