コード例 #1
0
    /// <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);
    }
コード例 #2
0
    /// <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();
    }