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

Skip to content

Commit 339e3f3

Browse files
committed
merge 3.4
2 parents 2dbc6e6 + 1c69c3e commit 339e3f3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/library/ssl.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Random generation
286286

287287
.. function:: RAND_bytes(num)
288288

289-
Returns *num* cryptographically strong pseudo-random bytes. Raises an
289+
Return *num* cryptographically strong pseudo-random bytes. Raises an
290290
:class:`SSLError` if the PRNG has not been seeded with enough data or if the
291291
operation is not supported by the current RAND method. :func:`RAND_status`
292292
can be used to check the status of the PRNG and :func:`RAND_add` can be used
@@ -303,7 +303,7 @@ Random generation
303303

304304
.. function:: RAND_pseudo_bytes(num)
305305

306-
Returns (bytes, is_cryptographic): bytes are *num* pseudo-random bytes,
306+
Return (bytes, is_cryptographic): bytes are *num* pseudo-random bytes,
307307
is_cryptographic is ``True`` if the bytes generated are cryptographically
308308
strong. Raises an :class:`SSLError` if the operation is not supported by the
309309
current RAND method.
@@ -321,10 +321,10 @@ Random generation
321321

322322
.. function:: RAND_status()
323323

324-
Returns ``True`` if the SSL pseudo-random number generator has been seeded with
325-
'enough' randomness, and ``False`` otherwise. You can use :func:`ssl.RAND_egd`
326-
and :func:`ssl.RAND_add` to increase the randomness of the pseudo-random
327-
number generator.
324+
Return ``True`` if the SSL pseudo-random number generator has been seeded
325+
with 'enough' randomness, and ``False`` otherwise. You can use
326+
:func:`ssl.RAND_egd` and :func:`ssl.RAND_add` to increase the randomness of
327+
the pseudo-random number generator.
328328

329329
.. function:: RAND_egd(path)
330330

@@ -341,7 +341,7 @@ Random generation
341341

342342
.. function:: RAND_add(bytes, entropy)
343343

344-
Mixes the given *bytes* into the SSL pseudo-random number generator. The
344+
Mix the given *bytes* into the SSL pseudo-random number generator. The
345345
parameter *entropy* (a float) is a lower bound on the entropy contained in
346346
string (so you can always use :const:`0.0`). See :rfc:`1750` for more
347347
information on sources of entropy.

0 commit comments

Comments
 (0)