-
Notifications
You must be signed in to change notification settings - Fork 34
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
fix(rand): remove timestamp randomness #257
Conversation
5d3ab9b
to
22aa5ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor suggestions on test names otherwise looks good :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. I just have one concern about determinism in gossip.
I also left some comments with my thoughts about imports. Nothing all that important though.
Co-authored-by: Harold <[email protected]>
Co-authored-by: Harold <[email protected]>
Co-authored-by: Harold <[email protected]>
Co-authored-by: Harold <[email protected]>
Co-authored-by: Harold <[email protected]>
Co-authored-by: Harold <[email protected]>
Co-authored-by: Harold <[email protected]>
Co-authored-by: Harold <[email protected]>
Co-authored-by: Harold <[email protected]>
f9987d4
to
49eaff0
Compare
getWallclockMs
intosig.time
(doesnt make sense to be in gossip)buildMessages
which is used for all random operations (prev seed was wallclock)seed
parameter toPullRequestTask
(instead of using wallclock)now
parameter tobuildPullRequests
for more deterministic results (prev was reading wallclock)test "test build pull requests"
to be a more deterministic testnote: the last two changes were aimed to make
test "test build pull requests"
more deterministic and fix #157 -- ive re-run the tests many times and it seems to be fixed