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

Also available in: Atom PDF

Like0
Like0Like0