removing srand call