diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-04-13 13:46:53 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-04-13 13:46:53 +0900 |
commit | 57fe81200f1b645acd62ec004b4664944a3fbf68 (patch) | |
tree | e733d32ed6f77602df545935f5cc927d98a1355a /actionview/MIT-LICENSE | |
parent | 4a68792df7f2cecf9e6d9ddb18dfe761f553eb2a (diff) | |
download | rails-57fe81200f1b645acd62ec004b4664944a3fbf68.tar.gz rails-57fe81200f1b645acd62ec004b4664944a3fbf68.tar.bz2 rails-57fe81200f1b645acd62ec004b4664944a3fbf68.zip |
Use `SecureRandom.random_bytes` instead of `SecureRandom.bytes`
`SecureRandom.byes` was added in Ruby 2.4. So, 5-2-stable build is broken
because using `SecureRandom.bytes`.
https://travis-ci.org/rails/rails/jobs/365740667
Also, `SecureRandom.byes` seems to an undocumented method.
If need random binary strings, should use `SecureRandom.random_bytes`.
https://github.com/ruby/ruby/blob/trunk/lib/securerandom.rb
Diffstat (limited to 'actionview/MIT-LICENSE')
0 files changed, 0 insertions, 0 deletions