# File lib/backports/1.8.7/hash/hash.rb, line 2 def hash h = 0 each do |key, value| h ^= key.hash ^ value.hash end h end