Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matchmaker generates the same schedule #221

Closed
maths22 opened this issue Dec 1, 2018 · 3 comments
Closed

Matchmaker generates the same schedule #221

maths22 opened this issue Dec 1, 2018 · 3 comments

Comments

@maths22
Copy link
Contributor

maths22 commented Dec 1, 2018

Matchmaker generates the same schedule no matter how many times you run it-this includes if you have two events with the same teams (e.g. league meets)

This behavior was observed on two separate machines using OS X. It was observed using a real event DB-I also reproduced with the attached test DB.

I was able to temporarily resolve the issue by replacing the matchmaker executable with one from last season, which suggests the issue is with matchmaker and not the scoring system.

test_event.db.zip

@maths22
Copy link
Contributor Author

maths22 commented Dec 3, 2018

I verified this on a copy of matchmaker downloaded direct from idleloop: for a given set of configuration settings, it always generated the same schedule.

Also used Wine to run the windows version, and the windows version is fine: each run generates a different schedule.

@tomsax
Copy link

tomsax commented Dec 4, 2018

There's a new build on idleloop.com that fixes the bug in the Mac version.

https://idleloop.com/matchmaker/download.php

There was a configuration error that caused the random function to be seeded with srand(time()) on the Mac instead of the preferred srandomdev(). That used to work just fine on the Mac, and does still work on Windows and Linux, but no longer works on macOS. The new Mac build uses the correct function and produces different schedules.

@maths22
Copy link
Contributor Author

maths22 commented Dec 6, 2018

Resolved in v0.6.0

@maths22 maths22 closed this as completed Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants