[前][次][番号順一覧][スレッド一覧]

ruby-changes:47749

From: kazu <ko1@a...>
Date: Wed, 13 Sep 2017 21:46:19 +0900 (JST)
Subject: [ruby-changes:47749] kazu:r59866 (trunk): Random.urandom raises RuntimeError instead of returning nil

kazu	2017-09-13 21:46:13 +0900 (Wed, 13 Sep 2017)

  New Revision: 59866

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59866

  Log:
    Random.urandom raises RuntimeError instead of returning nil
    
    [ci skip]

  Modified files:
    trunk/random.c
Index: random.c
===================================================================
--- random.c	(revision 59865)
+++ random.c	(revision 59866)
@@ -608,7 +608,7 @@ random_seed(void) https://github.com/ruby/ruby/blob/trunk/random.c#L608
  * Returns a string, using platform providing features.
  * Returned value is expected to be a cryptographically secure
  * pseudo-random number in binary form.
- * This method returns nil if the feature provided by platform
+ * This method raises a RuntimeError if the feature provided by platform
  * failed to prepare the result.
  *
  * In 2017, Linux manpage random(7) writes that "no cryptographic

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]