Skip to content

gh-127921: Add RWF_ATOMIC constant to os module #127922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove other changes
  • Loading branch information
rruuaanng committed Dec 13, 2024
commit 981795db074732953c59e3bd9ca8857e841db35e
16 changes: 2 additions & 14 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5743,8 +5743,8 @@ Random numbers
``/dev/urandom`` devices.

The flags argument is a bit mask that can contain zero or more of the
following values ORed together: :py:const:`os.GRND_RANDOM`,
:py:data:`GRND_NONBLOCK` and :py:data:`GRND_INSECURE`.
following values ORed together: :py:const:`os.GRND_RANDOM` and
:py:data:`GRND_NONBLOCK`.

See also the `Linux getrandom() manual page
<https://man7.org/linux/man-pages/man2/getrandom.2.html>`_.
Expand Down Expand Up @@ -5814,15 +5814,3 @@ Random numbers
``/dev/random`` pool instead of the ``/dev/urandom`` pool.

.. versionadded:: 3.6

.. data:: GRND_INSECURE

If this flag is set, then :func:`getrandom` will return pseudo-random data
even if the entropy pool has not yet been initialized.
(It cannot be used with :py:const:`os.GRND_RANDOM`.)

.. note::

It is not suitable for scenarios requiring secure cryptography.

.. versionadded:: next
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy