Project

General

Profile

Actions

Bug #4103

closed

String#hash not returning consistent values in different sessions

Added by ryanong (Ryan Ong) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [i386-darwin10.4.0]
Backport:
[ruby-core:33491]

Description

=begin
I open one irb session

ruby-1.9.2-p0 > 'test'.hash
=> -658842761
ruby-1.9.2-p0 > 'test'.hash
=> -658842761

The second time I open it

ruby-1.9.2-p0 > 'test'.hash
=> 11032433
ruby-1.9.2-p0 > 'test'.hash
=> 11032433

I have no clue if this is on purpose or not but in 1.8.7 it was consistent across different sessions.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0