removal of srand calls