aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/cache/behaviors/cache_store_behavior.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/cache/behaviors/cache_store_behavior.rb b/activesupport/test/cache/behaviors/cache_store_behavior.rb
index 0806665c27..e2146a1b3a 100644
--- a/activesupport/test/cache/behaviors/cache_store_behavior.rb
+++ b/activesupport/test/cache/behaviors/cache_store_behavior.rb
@@ -241,7 +241,7 @@ module CacheStoreBehavior
# generate an incompressible string
loop do
- incompressible = SecureRandom.bytes(1.kilobyte)
+ incompressible = SecureRandom.random_bytes(1.kilobyte)
break if incompressible.bytesize < Zlib::Deflate.deflate(incompressible).bytesize
end