diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-12-12 14:11:51 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-12-12 06:40:43 +0000 |
commit | dbd704ae6f0e0fdcefa2007ce1c06f7021c8e830 () | |
tree | 208e1f1ecc2066e22a0bed4e6dc0fc057d572827 /lib/securerandom.rb | |
parent | cb93d10ae559b0cf0f0935ddc1cc50dda65c6df8 (diff) |
[ruby/securerandom] [DOC] Add documents of methods and constants
https://.com/ruby/securerandom/commit/9a99978135
-rw-r--r-- | lib/securerandom.rb | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -40,19 +40,25 @@ require 'random/formatter' module SecureRandom VERSION = "0.3.0" class << self def bytes(n) return gen_random(n) end private def gen_random_openssl(n) return OpenSSL::Random.random_bytes(n) end def gen_random_urandom(n) ret = Random.urandom(n) unless ret @@ -78,6 +84,7 @@ module SecureRandom end end public :gen_random end end |