Should we consider moving from legacy numpy RandomState
to Random.Generator
?
#27008
Labels
Needs Triage
Issue requires triage
Uh oh!
There was an error while loading. Please reload this page.
Numpy
RandomState
is now legacy ("This generator is considered frozen and will have no further improvement") and the documentation advises against using it:However, it sounds like
RandomState
will always work:NEP19 also says
numpy.random.Generator
was introduced in version 1.17 (specifically this PR) - our min dep is higher than this.I don't have enough knowledge to know in what way the new generator is better (except for performance) but just asking as it is advised to not use the old one.
(Edit: for context saw this while working on #26958)
The text was updated successfully, but these errors were encountered: