Backport #2450
Array#sample can loop forever [patched]
| Status: | Closed | Start date: | 12/07/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | - |
Description
[:hello].sample(42) # ==> loops on Ruby 1.8.8 Fixed. Other backports pass RubySpec.
Associated revisions
* array.c (rb_ary_sample): Fix infinite loop bug [ruby-core:27075]
History
Updated by shyouhei (Shyouhei Urabe) about 2 years ago
- Status changed from Closed to Assigned
- Assignee set to shyouhei (Shyouhei Urabe)
Updated by shyouhei (Shyouhei Urabe) about 2 years ago
- Status changed from Assigned to Closed
Seems this bug does not affect to 1.8.7 & below.