Archived
1
0
Fork
You've already forked PowerGrid
0

Vehicle: Fix random issue #86

Merged
num2 merged 4 commits from fix-randomness into main 2025年06月30日 01:16:54 +02:00
num2 commented 2025年06月30日 01:06:26 +02:00 (Migrated from github.com)
Copy link

After switching to a deterministic random generator all cars had the same seed, causing them to behave exactly the same (timing and destination). This fixes it by adding seed as a field in Vehicle and update it every time its getter is called.

After switching to a deterministic random generator all cars had the same seed, causing them to behave exactly the same (timing and destination). This fixes it by adding seed as a field in `Vehicle` and update it every time its getter is called.
Commenting is not possible because the repository is archived.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AnnsAnn/PowerGrid!86
Reference in a new issue
AnnsAnn/PowerGrid
No description provided.
Delete branch "fix-randomness"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?