Project

General

Profile

Actions

Feature #20893

closed

random/formatter.rb: Separate from securerandom

Added by nobu (Nobuyoshi Nakada) about 1 month ago. Updated 6 days ago.

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

Description

For historical reasons, random/formatter.rb is included in ruby​​​​/securerandom, but it does not contain any security-related methods as evidenced by the fact that its path is not under securerandom/, but only contains generic methods for PRNGs, including the standard class Random.

So I propose to either:

  1. put it back in the standard library, or
  2. separate it into a new gem.

Adding a new dependency may not be welcomed, as seen in the recent issues with base64.

Updated by nobu (Nobuyoshi Nakada) about 1 month ago

lol

$ git ls-files -- '**/random/formatter.rb'
lib/bundler/vendor/securerandom/lib/random/formatter.rb
lib/random/formatter.rb
lib/rubygems/vendor/securerandom/lib/random/formatter.rb

Updated by hsbt (Hiroshi SHIBATA) about 1 month ago

put it back in the standard library, or

I prefer that approach.

Actions #3

Updated by hsbt (Hiroshi SHIBATA) 19 days ago

  • Status changed from Open to Assigned

Updated by hsbt (Hiroshi SHIBATA) 6 days ago

  • Status changed from Assigned to Closed
  • Assignee changed from matz (Yukihiro Matsumoto) to hsbt (Hiroshi SHIBATA)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0