Project

General

Profile

This project is closed and read-only.

Actions

Backport #2450

closed

Array#sample can loop forever [patched]

Backport #2450: Array#sample can loop forever [patched]

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


Description

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

Fixed.

Other backports pass RubySpec.
=end

Updated by shyouhei (Shyouhei Urabe) over 16 years ago Actions #1

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

=begin

=end

Updated by shyouhei (Shyouhei Urabe) over 16 years ago Actions #2

  • Status changed from Assigned to Closed

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

Actions

Also available in: PDF Atom