From: Sebastian Hungerecker Date: 2009-05-04T23:39:55+09:00 Subject: Re: String#hash changed in Ruby 1.9? Am Montag 04 Mai 2009 16:22:01 schrieb David Palm: > in ruby 1.9.1: > david@trince ~$ ruby -e 'puts "abc".hash' > 402929305 > david@trince ~$ ruby -e 'puts "abc".hash' > -403532784 > david@trince ~$ ruby -e 'puts "abc".hash' > -650364342 > > What happened? Is this intentional? 1.9 uses murmurhash(http://murmurhash.googlepages.com/) with a random seed which is generated once per application-run. > Any tips on how to replace it? What does it hurt if the hash value of a string does not remain constant between runs of the application? HTH, Sebastian