refactor initial mersenne twister seed from number