Fixed speed regression by limiting srand calls