/* goodB2G2() - use badsource and goodsink by reversing the blocks in the if in the sink function */ private void GoodB2G2() { byte data = 0; /* POTENTIAL FLAW: Use a random value */ data = (byte)(new Random().Next(byte.MinValue, byte.MaxValue)); goodB2G2PublicStatic = true; CWE191_Integer_Underflow__Byte_rand_sub_22b.GoodB2G2Sink(data); }