Added a random seed generation that works