Skip to content

Commit

Permalink
Remove constant Random::DEFAULT
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklinpl committed Feb 1, 2024
1 parent 90bfaa0 commit d83b781
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Bug fixes:
* Fix using the `--cpusampler` profiler when there are custom unblock functions for `rb_thread_call_without_gvl()` (#3013, @eregon).
* Fix recursive raising `FrozenError` exception when redefined `#inspect` modifies an object (#3388, @andrykonchin).
* Fix `Integer#div` returning the wrong object type when the divisor is a `Rational` (@simonlevasseur, @nirvdrum).
* Remove constant `Random::DEFAULT` (#3039, @patricklinpl)

Compatibility:

Expand Down
2 changes: 0 additions & 2 deletions spec/tags/core/random/default_tags.txt

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/ruby/truffleruby/core/random.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def initialize(value)
end

class Random
DEFAULT = self
deprecate_constant :DEFAULT

def self.new_seed
Primitive.thread_randomizer.generate_seed
end
Expand Down

0 comments on commit d83b781

Please sign in to comment.