Project

General

Profile

Backport #2450

Array#sample can loop forever [patched]

Added by marcandre (Marc-Andre Lafortune) over 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:27075]

Description

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

Fixed.

Other backports pass RubySpec.
=end

History

#1

Updated by shyouhei (Shyouhei Urabe) about 9 years ago

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

=begin

=end

#2

Updated by shyouhei (Shyouhei Urabe) about 9 years ago

  • Status changed from Assigned to Closed

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

Also available in: Atom PDF