System.Security.Cryptography.RandomNumberGenerator.GetNonZeroBytes C# (CSharp) Метод

GetNonZeroBytes() публичный Метод

public GetNonZeroBytes ( byte data ) : void
data byte
Результат void
        public virtual void GetNonZeroBytes(byte[] data)
        {
            // For compatibility we cannot have it be abstract. Since this technically is an abstract method
            // with no implementation, we'll just throw NotImplementedException.
            throw new NotImplementedException();
        }

Usage Example

Пример #1
0
 public TokenManager()
 {
     sha1 = SHA1.Create();
     random = RandomNumberGenerator.Create();
     LastSecretGeneration = DateTime.MinValue; //in order to force the update
     secret = new byte[10];
     previousSecret = new byte[10];
     random.GetNonZeroBytes(secret);
     random.GetNonZeroBytes(previousSecret);
 }
All Usage Examples Of System.Security.Cryptography.RandomNumberGenerator::GetNonZeroBytes