diff options
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 |