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] Don't re-seed the TestRng when calling check_merkle_tree #2399

Merged

Conversation

ljedrz
Copy link
Collaborator

@ljedrz ljedrz commented Mar 21, 2024

This PR fixes a small issue I've found when looking into the performance of MerkleTree - instead of reusing a single TestRng for the entirety of a single test, we are currently re-seeding it whenever we run check_merkle_tree, which makes the affected tests slower and more difficult to reproduce.

This is a test-only change and its introduction can be delayed for as long as necessary.

Signed-off-by: ljedrz <ljedrz@gmail.com>
Copy link
Contributor

@howardwu howardwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

For readers - this PR only touches test files. It does not touch non-test code.

@howardwu howardwu changed the title Don't re-seed the TestRng when calling check_merkle_tree [Fix] Don't re-seed the TestRng when calling check_merkle_tree Mar 21, 2024
@howardwu howardwu merged commit 035c4a8 into AleoNet:mainnet-staging Mar 21, 2024
78 checks passed
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

Successfully merging this pull request may close these issues.

2 participants