summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/securerandom.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb
index fcbe1b1d5f..470b48dd6b 100644
--- a/lib/securerandom.rb
+++ b/lib/securerandom.rb
@@ -37,6 +37,11 @@
# 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"