Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby/stdlib/ipaddr.rb
Original file line number Diff line number Diff line change
@@ -349,7 +349,7 @@ def eql?(other)

# Returns a hash value used by Hash, Set, and Array classes
def hash
return ([@addr, @mask_addr].hash << 1) | (ipv4? ? 0 : 1)
return [@addr, @mask_addr].hash ^ (ipv4? ? 0 : 1)
end

# Creates a Range object for the network address.

0 comments on commit 7983929

Please sign in to comment.