Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions core/src/main/java/org/jruby/RubyArray.java
Original file line number Diff line number Diff line change
@@ -4035,10 +4035,8 @@ public IRubyObject shuffle_bang(ThreadContext context, IRubyObject[] args) {
if (args.length > 0) {
IRubyObject hash = TypeConverter.checkHashType(context.runtime, args[args.length - 1]);
if (!hash.isNil()) {
IRubyObject argRandgen = ((RubyHash) hash).fastARef(context.runtime.newSymbol("random"));
if (argRandgen != null) {
randgen = argRandgen;
}
IRubyObject[] rets = ArgsUtil.extractKeywordArgs(context, (RubyHash) hash, new String[] { "random" });
if (!rets[0].isNil()) randgen = rets[0];
}
}
int i = realLength;
1 change: 0 additions & 1 deletion test/mri/excludes/TestArray.rb
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
exclude :test_repeated_permutation_with_callcc, "no callcc"
exclude :test_rindex2, "needs investigation"
exclude :test_sample_random, "needs investigation"
exclude :test_shuffle, "must enforce bad keyword (#1368)"
exclude :test_shuffle_random, "needs investigation"
exclude :test_sort_bang_with_freeze, ""
exclude :test_sort_with_callcc, "no callcc"

0 comments on commit 8b6f9c7

Please sign in to comment.