Exemple #1
0
 protected UInt64 GenID()
 {
     return(CryptoRandom.Random(UInt64.MaxValue - 2) + 2);
 }
Exemple #2
0
        public void Restore()
        {
            _Exists = true;

            if (writedInFile)
            {
                _headersFileStream.WriteByte((long)_StartPos + 16, (byte)(Convert.ToByte(!_Exists) * 128 + (int)CryptoRandom.Random(128)));
            }
        }