Skip to content
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

Update get_rng to return Generator instances #107

Open
clbarnes opened this issue Aug 28, 2022 · 0 comments
Open

Update get_rng to return Generator instances #107

clbarnes opened this issue Aug 28, 2022 · 0 comments

Comments

@clbarnes
Copy link
Contributor

Following on from #67 :

As of somewhat-recent numpy versions, the RandomState RNG interface has been deprecated in favour of the Generator interface, and bctpy should be updated to match.

It's worth noting that the RandomState class will produce stable results across numpy versions (other than bugfixes), where the now-preferred Generator class will benefit from algorithmic improvements which may change the random numbers returned from the same seed.

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

No branches or pull requests

2 participants