generated from refcell/femplate
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Intermittant failure of Fenwick tree removal #508
Comments
Seems this was an issue with the fuzz tests, not the Fenwick tree itself. Will be fixed by #523 once upstream PRs are merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Need to rework randomness function to base it on a deterministic seed. Afterword, we can run a continuous test to reproduce the behavior of failed removal, and further investigate the problem.
Details from the card
DSTest currently has this
randomInRange
facility which generates psuedorandomness by taking the keccak ofblock.timestamp
,msg.sender
, and_nonce
. The block timestamp and nonce are not deterministic, hindering reproduction of fuzz test failures.Create a new random function which takes a fuzzed seed, and move consumers over to this function as failures are observed. First subject is
FenwickTreeInstance.fuzzyFill
.The text was updated successfully, but these errors were encountered: