Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Removed the possibility of a negative seed in random() within commons/formulas.py by removing the multiplication by 100
2 changes: 1 addition & 1 deletion policyengine_core/commons/formulas.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def random(population):
values = np.array(
[
np.random.default_rng(
seed=id * 100 + population.simulation.count_random_calls
seed=id + population.simulation.count_random_calls
).random()
for id in entity_ids
]
Expand Down