[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83557] [Ruby trunk Feature#14052] Introduce SecureRandom.with_chars

From: yanagi@...
Date: 2017-10-25 05:29:54 UTC
List: ruby-core #83557
Issue #14052 has been reported by kyanagi (Kouhei Yanagita).

----------------------------------------
Feature #14052: Introduce SecureRandom.with_chars
https://bugs.ruby-lang.org/issues/14052

* Author: kyanagi (Kouhei Yanagita)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
ref. https://bugs.ruby-lang.org/issues/10849

This request renames SecureRandom.choose to .with_chars and makes it public.
(I think it would be a better name.)

For example, when generating passwords for users,
I'd like to avoid using characters "O" and "0" (or I, l, 1, ...) because they are confusing.
SecureRandom.with_chars would be useful to do this.


---Files--------------------------------
securerandom-with_chars.diff (1.66 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next