Field FuzzFactor
The fuzz factor is a percentage that represents both the proportion of packets that should be fuzzed, and the probability of any bit being flipped in the packet. For example, a value of 5 means about 5% of packets will be modified, and for each packet modified, each bit has a 5% chance of being flipped.
Namespace: Unity.Networking.Transport.Utilities
Assembly: solution.dll
Syntax
public int FuzzFactor
Returns
Type | Description |
---|---|
int | Percentage (0-100). |
Remarks
The presence of this parameter in the simulator pipeline stage should not be understood as this being a condition that should be tested against when doing network simulations. In real networks, corrupted packets basically never make it all the way to the user (they'll get dropped before that). This parameter is mostly useful to test a netcode solution against maliciously-crafted packets.