fn generateSplat(smith: *Smith) ?u8 smith: *Smith1396
1397
1398
1399
1400
1401
1402
1403
1404
1405 fn generateSplat(smith: *Smith) ?u8 {
@disableInstrumentation();
// Same rationale for `check_write_after_free`
const n = smith.valueWeighted(u16, &.{
.value(u16, 256, 256 * 31),
.rangeAtMost(u16, 0, 255, 1),
});
return if (n == 256) null else @intCast(n);
}