Bug #2450: Array#sample can loop forever [patched]
http://redmine.ruby-lang.org/issues/show/2450

Author: Marc-Andre Lafortune
Status: Closed, Priority: Normal
Category: core, Target version: Ruby 1.8.8
ruby -v: ruby 1.8.8dev (2009-12-03) [i386-darwin10.2.0]

[:hello].sample(42)  # ==> loops on Ruby 1.8.8

Fixed.

Other backports pass RubySpec.


----------------------------------------
http://redmine.ruby-lang.org