path: root/random.c
diff options
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-09 15:19:19 (GMT)
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-09 15:19:19 (GMT)
commit7451ec065cc09758a49bbbf696b57da23e7f83ea (patch)
tree6b57d79afc79514ddf349b8716532ac53cd5b5a9 /random.c
parent86d76173de0864c1293801907c4cf56df627320d (diff)
Add a note to Random.urandom
The method may return nil for some reasons. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
1 files changed, 3 insertions, 1 deletions
diff --git a/random.c b/random.c
index 8ea28a5..82a51cc 100644
--- a/random.c
+++ b/random.c
@@ -606,8 +606,10 @@ random_seed(void)
* call-seq: Random.urandom(size) -> string
* Returns a string, using platform providing features.
- * Returned value expected to be a cryptographically secure
+ * 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
+ * failed to prepare the result.
* In 2017, Linux manpage random(7) writes that "no cryptographic
* primitive available today can hope to promise more than 256 bits of