fixed srand issue
fix srand issue