Skip to content

Commit

Permalink
[ruby/securerandom] [DOC] Satisfy RDoc coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu authored and matzbot committed Dec 12, 2023
1 parent dbd704a commit e411bd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/securerandom.rb
Expand Up @@ -53,6 +53,8 @@ def bytes(n)

private

# :stopdoc:

# Implementation using OpenSSL
def gen_random_openssl(n)
return OpenSSL::Random.random_bytes(n)
Expand Down Expand Up @@ -84,6 +86,8 @@ def gen_random_urandom(n)
end
end

# :startdoc:

# Generate random data bytes for Random::Formatter
public :gen_random
end
Expand Down

0 comments on commit e411bd5

Please sign in to comment.