Issue #12357 has been updated by Yui NARUSE.


This proposal is not described about "external sources" in detail, and use cases.

If this proposal want to pass data to init_by_array, the intention is clear.
But string is still ambiguous because of its endian.
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/faq.html

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

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