diff options
author | Georg Brandl <georg@python.org> | 2013-10-06 16:48:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-06 16:48:30 (GMT) |
commit | af1edb7f457c34a2c659bdfda6a561eefad8b5ff (patch) | |
tree | 3481ad4a319cb64a53b64454120e4fcc028535d1 /Python | |
parent | 4f198de5b2624dd04568c9f7eeecfed3c45f9f14 (diff) | |
parent | c6a2c9b466325c1c35b24735db53d60598d66112 (diff) | |
download | cpython-af1edb7f457c34a2c659bdfda6a561eefad8b5ff.zip cpython-af1edb7f457c34a2c659bdfda6a561eefad8b5ff.tar.gz cpython-af1edb7f457c34a2c659bdfda6a561eefad8b5ff.tar.bz2 |
merge with 3.3
Diffstat (limited to 'Python')
-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 1d470c7..9c9370c 100644 --- a/Python/random.c +++ b/Python/random.c @@ -218,8 +218,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 |