-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix builder to use provided rng (#150)
This commit fixes the turmoil sim builder by removing the `rng` function. Currently the `build` function ignores the `rng` set on the builder, and due to the boxing of the value there is no easy way to repeatedly build a sim with the same `rng`. We would need to add the ability to clone the boxed rng, which requires some complicated trait bounds and a different breaking of the interface. This is simpler and fixes the bug where rng was ignored during building. This is a breaking change: - `rng` is removed from the builder, as it was not delivering its expected behaviour. Users now need to explicitly specify `build_with_rng`.
- Loading branch information
Showing
2 changed files
with
6 additions
and
11 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