Added the seed calculation algorithm to the generator.