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

feat: add deterministic rng for context #9

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

quake
Copy link
Member

@quake quake commented Oct 17, 2024

In some unit test, we may need deterministic out point when deploying a contract, for example, in the fiber test code, two nodes need to have the same contract out point to build a commitment tx.

This PR adds a method to allow for a deterministic random number generator to be used to generate the out point when deploy a contract.

@quake quake requested a review from XuJiandong October 17, 2024 05:59
@XuJiandong
Copy link
Collaborator

also update another random function "random_out_point"

@XuJiandong XuJiandong merged commit 248fffa into nervosnetwork:main Oct 17, 2024
1 check 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