Project

General

Profile

Actions

Misc #15186

closed

`SecureRandom.random_number` is not documented

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

Status:
Closed
Priority:
Normal
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 3 years ago

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

Updated by nobu (Nobuyoshi Nakada) about 3 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 3 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