What is the formula of magnesium cyanide?

The formula of magnesium cyanide is Mg(CN)2.