/// <summary> /// Generates new Server Seed and Hash /// </summary> public void GenerateServerSeedAndHash() { ArchiveServerSeedAndHash(); DateTime currentDate = DateTime.Now; ServerSeedCurrent = DiceGameHashLogic.GenerateServerSeed(currentDate, User.Name, AppSettings.Offerwalls.UniversalHandlerPassword); ServerHashCurrent = DiceGameHashLogic.GenerateServerHash(ServerSeedCurrent); }
/// <summary> /// Generates first set of hashes /// </summary> private void GenerateFirstHashes() { CreatedDateCurrent = DateTime.Now; CreatedDatePrevious = DateTime.Now.Zero(); DateTime currentDate = DateTime.Now; ServerSeedCurrent = DiceGameHashLogic.GenerateServerSeed(currentDate, User.Name, AppSettings.Offerwalls.UniversalHandlerPassword); ServerHashCurrent = DiceGameHashLogic.GenerateServerHash(ServerSeedCurrent); ClientSeedCurrent = DiceGameHashLogic.GenerateClientSeed(); }