Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PEP 522: Rewrite accounting for Nathaniel's feedback#23

Merged
ncoghlan merged 1 commit into
python:masterpython/peps:masterfrom
ncoghlan:security-sensitive-rngncoghlan/peps:security-sensitive-rngCopy head branch name to clipboard
Jun 20, 2016
Merged

PEP 522: Rewrite accounting for Nathaniel's feedback#23
ncoghlan merged 1 commit into
python:masterpython/peps:masterfrom
ncoghlan:security-sensitive-rngncoghlan/peps:security-sensitive-rngCopy head branch name to clipboard

Conversation

@ncoghlan

Copy link
Copy Markdown
Contributor

The core proposal (raising BlockingIOError) remains the same,
but the rationale and background sections now go into much more
depth for folks that want it.

The PEP now also explicitly covers the related changes to interpreter
and random module initialization, as well as providing references
to most of the related bugs.python.org messages.

The core proposal (raising BlockingIOError) remains the same,
but the rationale and background sections now go into much more
depth for folks that want it.

The PEP now also explicitly covers the related changes to interpreter
and random module initialization, as well as providing references
to most of the related bugs.python.org messages.
Comment thread pep-0522.txt
and when it occurs then there is no direct way for userspace to tell it has
happened without querying operating system specific interfaces.

On \*BSD systems, encountering this situation means ``os.urandom()`` will block

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a minor nitpick, but AFAICT (could easily be misinformed on one piece of another but):

  • OpenBSD: requires entropy be present before spawning the first userspace process
  • FreeBSD: reads from /dev/urandom and /dev/random block if the RNG is uninitialized, and never afterwards (as described here)
  • NetBSD: acts like Linux

This is why my draft avoided saying anything about *BSD :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.