diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-01-01 11:36:54 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-01-01 18:55:52 +0900 |
commit | fae0b664315c23ef7db451f6241d256c12217051 (patch) | |
tree | 5dfc239c5976f358a61021e2b14660d63c5d1c92 /test | |
parent | 84891bffe8e68e12a7881d2bbae0db8267035e8a (diff) |
Remove deprecated Random::DEFAULT [Feature #17351]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5382
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rand.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index 13b7329269..f066433f6a 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -317,7 +317,7 @@ class TestRand < Test::Unit::TestCase assert_equal(r1, r2, bug5661) assert_fork_status(1, '[ruby-core:82100] [Bug #13753]') do - Random::DEFAULT.rand(4) + Random.rand(4) end rescue NotImplementedError end @@ -395,8 +395,8 @@ class TestRand < Test::Unit::TestCase assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") begin; verbose, $VERBOSE = $VERBOSE, nil - seed = Random::DEFAULT::seed - rand1 = Random::DEFAULT::rand + seed = Random.seed + rand1 = Random.rand $VERBOSE = verbose rand2 = Random.new(seed).rand assert_equal(rand1, rand2) |