The Asymptotic Distribution of Quadratic Discrepancies