mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
0a22f4c168
* benchmark/bm_securerandom.rb: benchmark script. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
5 lines
79 B
Ruby
5 lines
79 B
Ruby
require "securerandom"
|
|
|
|
20_0000.times do
|
|
SecureRandom.random_number(100)
|
|
end
|