Skip to content

Commit 570be97

Browse files
andrykonchineregon
authored andcommitted
[GR-45621] Remove constant Random::DEFAULT
PullRequest: truffleruby/4158
2 parents d49a42c + d83b781 commit 570be97

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Bug fixes:
2121
* Fix using the `--cpusampler` profiler when there are custom unblock functions for `rb_thread_call_without_gvl()` (#3013, @eregon).
2222
* Fix recursive raising `FrozenError` exception when redefined `#inspect` modifies an object (#3388, @andrykonchin).
2323
* Fix `Integer#div` returning the wrong object type when the divisor is a `Rational` (@simonlevasseur, @nirvdrum).
24+
* Remove constant `Random::DEFAULT` (#3039, @patricklinpl)
2425

2526
Compatibility:
2627

spec/tags/core/random/default_tags.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/main/ruby/truffleruby/core/random.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ def initialize(value)
5353
end
5454

5555
class Random
56-
DEFAULT = self
57-
deprecate_constant :DEFAULT
58-
5956
def self.new_seed
6057
Primitive.thread_randomizer.generate_seed
6158
end

0 commit comments

Comments
 (0)