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

GetBytes() публичный абстрактный Метод

public abstract GetBytes ( byte data ) : void
data byte
Результат void
        public abstract void GetBytes(byte[] data);

Same methods

RandomNumberGenerator::GetBytes ( byte data, int offset, int count ) : void

Usage Example

Пример #1
0
 public void fill(byte[] foo, int start, int len)
 {
     while (len > tmp.Length)
     {
         rng.GetBytes(tmp);
         Array.Copy(tmp, 0, foo, start, tmp.Length);
         len   -= tmp.Length;
         start += tmp.Length;
     }
     rng.GetBytes(tmp);
     Array.Copy(tmp, 0, foo, start, len);
 }
All Usage Examples Of System.Security.Cryptography.RandomNumberGenerator::GetBytes