Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0fa23e4

Browse files
Merge heads
2 parents 6a77286 + eb7a97c commit 0fa23e4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/library/ssl.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ Random generation
292292
can be used to check the status of the PRNG and :func:`RAND_add` can be used
293293
to seed the PRNG.
294294

295+
For almost all applications :func:`os.urandom` is preferable.
296+
295297
Read the Wikipedia article, `Cryptographically secure pseudorandom number
296298
generator (CSPRNG)
297299
<http://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator>`_,
@@ -311,6 +313,8 @@ Random generation
311313
for non-cryptographic purposes and for certain purposes in cryptographic
312314
protocols, but usually not for key generation etc.
313315

316+
For almost all applications :func:`os.urandom` is preferable.
317+
314318
.. versionadded:: 3.3
315319

316320
.. function:: RAND_status()

0 commit comments

Comments
 (0)