-
Notifications
You must be signed in to change notification settings - Fork 82
error in generation of random bytestream data from a custom datatype #79
Comments
Is there any reference documentation available, on understanding how the _generating() engine of Ivy works and the procedure for generating random data of custom data-types? |
I could not resolve this issue. This error, continue to occur, with all attempts at instantiating the module.
|
Some of the compilation results I obtained are as follows
|
Sorry, that's a bug that is fixed on the networking branch but not propagated to master. I'll leave this open until it the fix gets merged. |
For the constraint-based random generation, this paper describes the general idea:
However, it may not be particularly helpful in specific cases. For bit vector fields, Ivy should generate values uniformly. For arrays, it chooses a length uniformly in the range 0..3 and then chooses the elements uniformly (a bit arbitrary, I know). It then goes through in iterative process of mutating the assignment until an assignment satisfying the constraints is reached. This means the obtained distribution won't be the same as what you would get by rejection sampling, but hopefully it is much more efficient in the case that the rate of rejection is close to one. It is on the to-do list to allow the user more control of distributions. |
I'm trying to create a random packet of a particular datatype
arbit_data
defined as followsAfter defining the above data-type, I attempt to send randomly generated data through the UDP socket using the following script.
I however, end up with the following error, which I do not know how to resolve.
Could you please help resolve this issue? Is there something wrong in the way I'm implementing this?
The text was updated successfully, but these errors were encountered: