G
George Moschovitis
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@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.=> "1.8"
root@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.
I am facing a very NASTY problem with String#hash
Here is the same code that I run on 3 different computers:
root@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.=> "1.8"
root@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.