ruby-changes:54372
From: akr <ko1@a...>
Date: Thu, 27 Dec 2018 21:42:50 +0900 (JST)
Subject: [ruby-changes:54372] akr:r66586 (trunk): [DOC] SecureRandom is extended by Random::Formatter.
akr 2018-12-27 21:42:45 +0900 (Thu, 27 Dec 2018) New Revision: 66586 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66586 Log: [DOC] SecureRandom is extended by Random::Formatter. Modified files: trunk/lib/securerandom.rb Index: lib/securerandom.rb =================================================================== --- lib/securerandom.rb (revision 66585) +++ lib/securerandom.rb (revision 66586) @@ -16,6 +16,23 @@ https://github.com/ruby/ruby/blob/trunk/lib/securerandom.rb#L16 # * /dev/urandom # * Win32 # +# SecureRandom is extended by Random::Formatter module which defines +# following methods: +# +# * alphanumeric +# * base64 +# * choose +# * gen_random +# * hex +# * rand +# * random_bytes +# * random_number +# * urlsafe_base64 +# * uuid +# +# These methods are usable as class methods of SecureRandom such as +# `SecureRandom.hex`. +# # === Examples # # Generate random hexadecimal strings: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/