Project

General

Profile

Actions

Backport #2450

closed

Array#sample can loop forever [patched]

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


Description

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

Fixed.

Other backports pass RubySpec.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0