Project

General

Profile

Actions

Backport #2450

closed

Array#sample can loop forever [patched]

Added by marcandre (Marc-Andre Lafortune) almost 12 years ago. Updated over 10 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

Actions #1

Updated by shyouhei (Shyouhei Urabe) over 11 years ago

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

=begin

=end

Actions #2

Updated by shyouhei (Shyouhei Urabe) over 11 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