diff options
author | Georg Brandl <georg@python.org> | 2013-10-06 16:43:19 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-06 16:43:19 (GMT) |
commit | c6a2c9b466325c1c35b24735db53d60598d66112 (patch) | |
tree | b8da471aabbc83a5e564792674cdd20898294277 /Python/random.c | |
parent | 7d07833655a50e24a33a0a99ee2ffb289d4c2b04 (diff) | |
download | cpython-c6a2c9b466325c1c35b24735db53d60598d66112.zip cpython-c6a2c9b466325c1c35b24735db53d60598d66112.tar.gz cpython-c6a2c9b466325c1c35b24735db53d60598d66112.tar.bz2 |
Closes #15213: update comment for _PyOS_URandom
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/random.c b/Python/random.c index e5caa82..337be86 100644 --- a/Python/random.c +++ b/Python/random.c @@ -224,8 +224,9 @@ lcg_urandom(unsigned int x0, unsigned char *buffer, size_t size) } } -/* 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 |