Project

General

Profile

Actions

Feature #20893

open

random/formatter.rb: Separate from securerandom

Added by nobu (Nobuyoshi Nakada) 7 days ago. Updated 2 days ago.

Status:
Open
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) 7 days 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) 2 days ago

put it back in the standard library, or

I prefer that approach.

Actions

Also available in: Atom PDF

Like0
Like0Like0