Пример #1
0
        public uint GetVersion(string seed)
        {
            Randomizer       rand   = new Randomizer(ConvertSeedToInt(seed));
            int              offset = rand.Range(OffsetMin, OffsetMax);
            VersionEncrypter ver    = new VersionEncrypter((uint)offset, Symbols);

            seed = seed.Remove(0, _length);
            return(ver.GetVersionBySeed(seed));
        }
Пример #2
0
        public string GetNewSeed(uint version)
        {
            string           result = GetRandomSeed();
            Randomizer       rand   = new Randomizer(ConvertSeedToInt(result));
            int              offset = rand.Range(OffsetMin, OffsetMax);
            VersionEncrypter ver    = new VersionEncrypter((uint)offset, Symbols);

            result += ver.GetSeedVersionPart(version);
            return(result);
        }