blob: 6a704dbd40e48700bc21bbb60a99a5a683b29818 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: true
# Use RubyGems vendored copy when available. Otherwise fallback to Bundler
# vendored copy. The vendored copy in Bundler can be removed once support for
# RubyGems 3.5.18 is dropped.
begin
require "rubygems/vendored_securerandom"
rescue LoadError
require_relative "vendor/securerandom/lib/securerandom"
Gem::SecureRandom = Bundler::SecureRandom
end
|