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 /NEWS.md | |
parent | c183288754fdad17e627c4182de599d965e99405 (diff) | |
download | ruby-f5c89c1660afd3a89514125aad579c0a96990c4b.tar.gz |
Deprecate Random::DEFAULT
* Closes [Feature #17351].
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -269,6 +269,17 @@ Outstanding ones only. * New class added to enable parallel execution. See doc/ractor.md for more details. +* Random + + * `Random::DEFAULT` now refers to the `Random` class instead of being a `Random` instance, + so it can work with `Ractor`. + [[Feature #17322]] + + * `Random::DEFAULT` is deprecated since its value is now confusing and it is no longer global, + use `Kernel.rand`/`Random.rand` directly, or create a `Random` instance with `Random.new` instead. + [[Feature #17351]] + + * String * The following methods now return or yield String instances @@ -652,5 +663,7 @@ end [Feature #17187]: https://bugs.ruby-lang.org/issues/17187 [Bug #17221]: https://bugs.ruby-lang.org/issues/17221 [Feature #17260]: https://bugs.ruby-lang.org/issues/17260 +[Feature #17322]: https://bugs.ruby-lang.org/issues/17322 +[Feature #17351]: https://bugs.ruby-lang.org/issues/17351 [Feature #17371]: https://bugs.ruby-lang.org/issues/17371 [GH-2991]: https://github.com/ruby/ruby/pull/2991 |