Bug #22449
Updated by nobu (Nobuyoshi Nakada) 3 days ago
Backports required: [GH-18879] and [GH-19047]
Also cases where array modified within the `rand` method.
[GH-18879]: https://github.com/ruby/ruby/pull/18879
[GH-19047]: https://github.com/ruby/ruby/pull/19047