Mercurial > cpython-lru_cache-weakref
diff Python/random.c @ 86107:176bb5a98463 3.3
Closes #15213: update comment for _PyOS_URandom
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 06 Oct 2013 18:43:19 +0200 |
| parents | 193bcc12575d |
| children | b0295cc736d8 |
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
