This causes an object allocation during hash computation. Any chance you can do something a little simpler? Maybe:
```ruby
hash_key.hash ^ range_value.hash
```
While I wouldn't normally suggest you optimize for minimal allocations, the hash method is likely to be in an inner loop somewhere in many programs, and the GC in Ruby is very slow.