ruby-changes:51434
From: stomar <ko1@a...>
Date: Wed, 13 Jun 2018 05:22:48 +0900 (JST)
Subject: [ruby-changes:51434] stomar:r63640 (trunk): lib/securerandom.rb: improve docs
stomar 2018-06-13 05:22:43 +0900 (Wed, 13 Jun 2018) New Revision: 63640 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63640 Log: lib/securerandom.rb: improve docs * lib/securerandom.rb: [DOC] add alphanumeric example to module docs. [Fix GH-1812] From: Justin Bull <me@j...> Modified files: trunk/lib/securerandom.rb Index: lib/securerandom.rb =================================================================== --- lib/securerandom.rb (revision 63639) +++ lib/securerandom.rb (revision 63640) @@ -37,6 +37,11 @@ https://github.com/ruby/ruby/blob/trunk/lib/securerandom.rb#L37 # SecureRandom.random_bytes(10) #=> "\016\t{\370g\310pbr\301" # SecureRandom.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337" # +# Generate alphanumeric strings: +# +# SecureRandom.alphanumeric(10) #=> "S8baxMJnPl" +# SecureRandom.alphanumeric(10) #=> "aOxAg8BAJe" +# # Generate UUIDs: # # SecureRandom.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/