mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@519df35
This commit is contained in:
parent
31bb66a19d
commit
1c938a72aa
83 changed files with 1416 additions and 308 deletions
|
@ -1,8 +1,12 @@
|
|||
require_relative '../../spec_helper'
|
||||
require_relative '../../core/random/shared/rand'
|
||||
|
||||
require 'securerandom'
|
||||
|
||||
describe "SecureRandom.random_number" do
|
||||
it_behaves_like :random_number, :rand, SecureRandom
|
||||
it_behaves_like :random_number, :random_number, SecureRandom
|
||||
|
||||
it "generates a random positive number smaller then the positive integer argument" do
|
||||
(1..64).each do |idx|
|
||||
num = SecureRandom.random_number(idx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue