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

fix: make state fuzzing deterministic #2590

Merged
merged 1 commit into from
Aug 3, 2022
Merged

Conversation

onbjerg
Copy link
Member

@onbjerg onbjerg commented Aug 3, 2022

Our state fuzzing wasn't deterministic because we used a HashSet to store the state, which arbitrarily orders the data. Now we use a BTreeSet instead.

Closes #2571

@onbjerg onbjerg added the T-bug Type: bug label Aug 3, 2022
@onbjerg onbjerg merged commit c1088cf into master Aug 3, 2022
@onbjerg onbjerg deleted the onbjerg/fuzzer-determinism branch August 3, 2022 16:50
iFrostizz pushed a commit to iFrostizz/foundry that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting --fuzz-seed does not fix gas consumption of fuzzing tests
2 participants