summaryrefslogtreecommitdiff
path: root/test/ruby/test_rand.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_rand.rb')
-rw-r--r--test/ruby/test_rand.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb
index 40b291f959..c3282cf804 100644
--- a/test/ruby/test_rand.rb
+++ b/test/ruby/test_rand.rb
@@ -171,6 +171,7 @@ class TestRand < Test::Unit::TestCase
def test_shuffle
srand(0)
assert_equal([1,4,2,5,3], [1,2,3,4,5].shuffle)
+ assert_equal([1,4,2,5,3], [1,2,3,4,5].shuffle(random: Random.new(0)))
end
def test_big_seed