diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-13 12:46:13 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-13 12:46:13 +0000 |
commit | 4cdd9411e5af348d1adb1b71193245f31a224afb (patch) | |
tree | 25eb2adb4cad015044bcd58c5e39b0c58fe78e76 /random.c | |
parent | 484f89cc7064d1b16920bcf1b5bfce75c2b62de9 (diff) | |
download | ruby-4cdd9411e5af348d1adb1b71193245f31a224afb.tar.gz |
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
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |