diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-12-14 20:24:18 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-12-14 20:29:50 +0100 |
commit | f5c89c1660afd3a89514125aad579c0a96990c4b (patch) | |
tree | 119a4e2441a87c9d70870c0d5ad97e8f00f7869f /test/ruby/test_rand.rb | |
parent | c183288754fdad17e627c4182de599d965e99405 (diff) |
Deprecate Random::DEFAULT
* Closes [Feature #17351].
Diffstat (limited to 'test/ruby/test_rand.rb')
-rw-r--r-- | test/ruby/test_rand.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index af10a27ce0..13b7329269 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -394,8 +394,10 @@ class TestRand < Test::Unit::TestCase def test_default_seed assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") begin; + verbose, $VERBOSE = $VERBOSE, nil seed = Random::DEFAULT::seed rand1 = Random::DEFAULT::rand + $VERBOSE = verbose rand2 = Random.new(seed).rand assert_equal(rand1, rand2) |