Project

General

Profile

Actions

Backport #2450

closed

Array#sample can loop forever [patched]

Added by marcandre (Marc-Andre Lafortune) almost 15 years ago. Updated over 13 years ago.


Description

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

Fixed.

Other backports pass RubySpec.
=end

Actions #1

Updated by shyouhei (Shyouhei Urabe) over 14 years ago

  • Status changed from Closed to Assigned
  • Assignee set to shyouhei (Shyouhei Urabe)

=begin

=end

Actions #2

Updated by shyouhei (Shyouhei Urabe) over 14 years ago

  • Status changed from Assigned to Closed

=begin
Seems this bug does not affect to 1.8.7 & below.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0