I have similar symtoms to what diana mentioned. Didn't have it for years and just came back last year. Magnesium doesn't work for me. The hylands formula helps. I find that taking calcium helps me a lot too. I remembered that I took coral calcium years ago and that seemed to clear it up. This time I have citrate and cabonate.
I had a magnesium (cell?) test years ago and my magnesium levels were fine, but never had my calcium checked so maybe my calcium levels are low. My d levels are low too, not sure if that factors into restless legs.