-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent seed and random from being shared between instances
This commit aims to change two related issues: - New instances of a model should not be able to overwrite the value of the seed of previous (and possibly running) models. - The `random` attribute should be instance-level, not class-level. Prior to this commit, both `_seed` and the `random` were class attributes that were set/changed every time a new instance was created. This fixes #1438
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters