Added option to set seed as null on generating key