Project

General

Profile

Actions

Misc #15186

closed

`SecureRandom.random_number` is not documented

Added by artur86 (Artur *) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Assignee:
-
[ruby-core:89231]

Description

I wonder if there is any reason why SecureRandom.random_number is not documented.
https://ruby-doc.org/stdlib-2.4.4/libdoc/securerandom/rdoc/SecureRandom.html

Actions #1

Updated by artur86 (Artur *) about 6 years ago

  • Tracker changed from Bug to Misc
  • Backport deleted (2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN)

Updated by nobu (Nobuyoshi Nakada) about 6 years ago

  • Status changed from Open to Closed

It is a method of Random::Formatter, not of SecureRandom.

https://ruby-doc.org/core-2.6.0.preview2/Random/Formatter.html#method-i-random_number

Updated by artur86 (Artur *) about 6 years ago

nobu (Nobuyoshi Nakada) wrote:

It is a method of Random::Formatter, not of SecureRandom.

https://ruby-doc.org/core-2.6.0.preview2/Random/Formatter.html#method-i-random_number

Oh... Nobuyoshi, thank you for pointing out! I missed it completely :(.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0