mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Random.urandom raises RuntimeError instead of returning nil
[ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8c632972f
commit
51de1548f4
1 changed files with 1 additions and 1 deletions
2
random.c
2
random.c
|
@ -608,7 +608,7 @@ random_seed(void)
|
|||
* 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
|
||||
|
|
Loading…
Add table
Reference in a new issue