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

Lazily seed np rng #1913

Merged
merged 2 commits into from
May 29, 2020
Merged

Lazily seed np rng #1913

merged 2 commits into from
May 29, 2020

Conversation

jjh42
Copy link
Contributor

@jjh42 jjh42 commented May 13, 2020

In some cases where env are create and torn down rapidly, np seeding takes a significant fraction of the time. This makes seeding only take place when the RNG is actually used.

@instance01
Copy link
Contributor

That's a nice change. But check that unit tests work.
Running pytest is your key to success here.

@pzhokhov pzhokhov merged commit 821841c into openai:master May 29, 2020
zlig pushed a commit to zlig/gym that referenced this pull request Sep 6, 2021
* Lazily seed np rng

* Fix missing return in np random
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants