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

Investigate a Random trait for rejection sampling in bee-test #1069

Open
grtlr opened this issue Feb 3, 2022 · 0 comments
Open

Investigate a Random trait for rejection sampling in bee-test #1069

grtlr opened this issue Feb 3, 2022 · 0 comments
Assignees
Labels
c-investigation Category - Investigation e-medium Experience - Medium n-all Network - All p-medium Priority - Medium wg-message Working Group - Message

Comments

@grtlr
Copy link
Contributor

grtlr commented Feb 3, 2022

The random generation in bee-test is becoming more and more complex, for example by introducing conditions for random values. A concrete example is the StateControllerAddressUnlockCondition in AliasOutput. It is required that the AliasIds are different from each other.

Maybe we could benefit from a Random trait and a RandomCondition trait that allows an easier impementation, or maybe even a proc-derive macro, of rejection sampling.

Another benefit would be that we could simply import the trait and the original type, not having to always find the matching rand_* method for a given type.

@grtlr grtlr added wg-message Working Group - Message c-investigation Category - Investigation e-medium Experience - Medium p-medium Priority - Medium n-all Network - All labels Feb 3, 2022
@grtlr grtlr self-assigned this Mar 7, 2022
@grtlr grtlr added this to the v0.4 milestone Mar 7, 2022
@thibault-martinez thibault-martinez removed this from the v0.4 milestone Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-investigation Category - Investigation e-medium Experience - Medium n-all Network - All p-medium Priority - Medium wg-message Working Group - Message
Projects
None yet
Development

No branches or pull requests

2 participants