diff Python/random.c @ 86106:3e5078c3784e 2.7

Closes #15213: update comment for _PyOS_URandom
author Georg Brandl <georg@python.org>
date Sun, 06 Oct 2013 18:43:19 +0200
parents ec296a36156b
children
line wrap: on
line diff
--- a/Python/random.c	Sun Oct 06 18:36:34 2013 +0200
+++ b/Python/random.c	Sun Oct 06 18:43:19 2013 +0200
@@ -224,8 +224,9 @@
     }
 }
 
-/* Fill buffer with size pseudo-random bytes, not suitable for cryptographic
-   use, from the operating random number generator (RNG).
+/* Fill buffer with size pseudo-random bytes from the operating system random
+   number generator (RNG). It is suitable for for most cryptographic purposes
+   except long living private keys for asymmetric encryption.
 
    Return 0 on success, raise an exception and return -1 on error. */
 int