Investigate a Random
trait for rejection sampling in bee-test
#1069
Labels
c-investigation
Category - Investigation
e-medium
Experience - Medium
n-all
Network - All
p-medium
Priority - Medium
wg-message
Working Group - Message
The random generation in
bee-test
is becoming more and more complex, for example by introducing conditions for random values. A concrete example is theStateControllerAddressUnlockCondition
inAliasOutput
. It is required that theAliasId
s are different from each other.Maybe we could benefit from a
Random
trait and aRandomCondition
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.The text was updated successfully, but these errors were encountered: