[Nitro] Problems with String#hash
George Moschovitis
george.moschovitis at gmail.com
Fri Nov 24 05:18:12 EST 2006
Dear devs,
I am facing a very NASTY problem with String#hash
Here is the same code that I run on 3 different computers:
root at kosh:~ # irb
irb(main):001:0> "User".hash
=> 690465448
irb(main):002:0> VERSION
=> "1.8.2"
C:\Documents and Settings\drak>irb
irb(main):001:0> "User".hash
=> 690465448
irb(main):002:0> VERSION
=> "1.8.4"
http://tryruby.hobix.com/
Interactive ruby ready.
>> "User".hash
=> 690465448
>> VERSION
=> "1.8"
root at victory:~# irb
irb(main):001:0> "User".hash
=> -1457018200
irb(main):002:0> VERSION
=> "1.8.4"
Please nottice that on the last case I get a different result! Any
idea why this happens?
thanks in advance for any help!
George.
--
http://blog.gmosx.com
http://nitroproject.org
More information about the Nitro-general
mailing list