[ruby-core:75436] [Ruby trunk Feature#12357] Random#initialize with a String

From: nobu@...
Date: 2016-05-10 07:54:16 UTC
List: ruby-core #75436
Issue #12357 has been updated by Nobuyoshi Nakada.


I found that rubyspec fails.

Maybe, an alternative is an optional parameter of `Random.new_seed` for the precision.

----------------------------------------
Feature #12357: Random#initialize with a String
https://bugs.ruby-lang.org/issues/12357#change-58553

* Author: Nobuyoshi Nakada
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
https://github.com/ruby/ruby/compare/trunk...nobu:feature/Random%23initialize-string

Currently `Random#initialize` only accepts an `Integer`.
It would be useful to accept a `String` to feed the seed from external sources, I think.



-- 
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