-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Galaxy to prime random orbit's seed values
When we introduced the thread-safe random number generation changes a few months back we wrongly assumed that using a Halo's ID to prime the seed number used to generate galaxy's orbit values was correct. It actually wasn't: it has the effect that for all Galaxies in the same Halo the same seed is generated, and therefore the same orbital values are generated. This commit adds a Galaxy parameter to the generate_random_orbits call so that it can be used to prime the random number generator's seed instead of the Halo. This should ensure results are different across Galaxies even when they belong to the same Halo. Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 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
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