зеркало из https://github.com/github/ruby.git
[ruby/securerandom] [DOC] Satisfy RDoc coverage
https://github.com/ruby/securerandom/commit/ddf2672e47
This commit is contained in:
Родитель
dbd704ae6f
Коммит
e411bd5b36
|
@ -53,6 +53,8 @@ module SecureRandom
|
|||
|
||||
private
|
||||
|
||||
# :stopdoc:
|
||||
|
||||
# Implementation using OpenSSL
|
||||
def gen_random_openssl(n)
|
||||
return OpenSSL::Random.random_bytes(n)
|
||||
|
@ -84,6 +86,8 @@ module SecureRandom
|
|||
end
|
||||
end
|
||||
|
||||
# :startdoc:
|
||||
|
||||
# Generate random data bytes for Random::Formatter
|
||||
public :gen_random
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче