I'm pretty sure the gender is determined by the sperm cell that fertilizes the egg. That's how it works for people, I'm assuming it's the same for other mammals.