summaryrefslogtreecommitdiffstats
path: root/Python/random.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-06 16:43:19 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-06 16:43:19 (GMT)
commitc0edadee84ea87c1b0f8eb3bfe26a023d303bb4a (patch)
tree564831fd033baa4cb47e866469df316bca4e4c5d /Python/random.c
parent4bfc96bf4362c89bbc5573f3eefbf3bed27f4ec5 (diff)
downloadcpython-c0edadee84ea87c1b0f8eb3bfe26a023d303bb4a.zip
cpython-c0edadee84ea87c1b0f8eb3bfe26a023d303bb4a.tar.gz
cpython-c0edadee84ea87c1b0f8eb3bfe26a023d303bb4a.tar.bz2
Closes #15213: update comment for _PyOS_URandom
Diffstat (limited to 'Python/random.c')
-rw-r--r--Python/random.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/random.c b/Python/random.c
index 73e3cc3..d615923 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