mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Closes #15213: update comment for _PyOS_URandom
This commit is contained in:
parent
7d07833655
commit
c6a2c9b466
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue