Skip to content

BUG: fully reset cached RNG state for non-MT19937 RNGs (#32062) - #32123

Merged
charris merged 1 commit into
numpy:maintenance/2.5.xfrom
charris:backport-32062
Jul 27, 2026
Merged

BUG: fully reset cached RNG state for non-MT19937 RNGs (#32062)#32123
charris merged 1 commit into
numpy:maintenance/2.5.xfrom
charris:backport-32062

Conversation

@charris

@charris charris commented Jul 27, 2026

Copy link
Copy Markdown
Member

Backport of #32062.

PR summary

I noticed this working on #32061 but it's a separate issue unrelated to thread safety. See the test for a case where it could lead to an RNG producing output based on an old state.

AI Disclosure

An AI model identified the bug.

@charris charris added this to the 2.5.2 release milestone Jul 27, 2026
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jul 27, 2026
@charris
charris merged commit 967688f into numpy:maintenance/2.5.x Jul 27, 2026
93 of 95 checks passed
@charris
charris deleted the backport-32062 branch July 27, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants