Issue with String#hash on ARM boards.

Discussion in 'Ruby' started by gonzih, Nov 21, 2013.

  1. gonzih

    gonzih Guest

    Hello everyone. Today guy named prahal in #ruby on freenode mentioned issue with String#hash on armv9, he also suggested that reverting this https://github.com/ruby/ruby/commit/525cb66467ff22a50f2e6bf307924459d38cd592 will fix issue.

    I tested provided example on beaglebone and rapsberrypi and can confirm that issue exists.

    Beaglebone was running 1.9.3p0, Pi was running 2.0.0p247.

    here is example for testing:

    ruby -e 'puts "discoverer".hash == "sub-setter".hash'

    Will print true, but should be false.

    Is there anyone here can test it on different board/ruby version and confirm that it is affected?

    Thanks and may Ruby be with you :)
     
    gonzih, Nov 21, 2013
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.