Project

General

Profile

Actions

Feature #18183

closed

make SecureRandom.choose public

Added by olleicua (Antha Auciello) over 2 years ago. Updated 8 months ago.

Status:
Closed
Target version:
-
[ruby-core:105361]

Description

This issue https://bugs.ruby-lang.org/issues/10849
added SecureRandom.alphanumeric and also the private method choose.
choose was kept private because the method name wasn't the best name to represent the behavior.
I think if it was called random_string it would be very clear what it does.
I also think it should be aliased to choose as well to allow backwards compatibility for people bypassing the private method with send (e.g. https://www.thetopsites.net/article/58611103.shtml)

I'm planning to put together a pull request for this. Please let me know if there are any complications I'm not considering.


Related issues 4 (0 open4 closed)

Related to Ruby master - Feature #10849: Adding an alphanumeric function to SecureRandomClosedandrewcbutterfield@gmail.com (Andrew Butterfield)Actions
Related to Ruby master - Feature #18190: Split `Random::Formatter` from securerandomClosedActions
Has duplicate Ruby master - Feature #18817: SecureRandom::choose is not being exposedRejectedActions
Has duplicate Ruby master - Feature #19854: Make SecureRandom.choose publicClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0