/* goodB2G() - use BadSource and GoodSink */ private static void GoodB2G() { int count; /* POTENTIAL FLAW: Set count to a random value */ count = (new Random()).Next(); Dictionary <int, int> countDictionary = new Dictionary <int, int>(); countDictionary.Add(0, count); countDictionary.Add(1, count); countDictionary.Add(2, count); CWE400_Uncontrolled_Resource_Consumption__Random_write_74b.GoodB2GSink(countDictionary); }