srand is seeded with the current second + pid