System.Security.Cryptography.RNGCryptoServiceProvider.RNGCryptoServiceProvider.GetBytes C# (CSharp) 메소드

GetBytes() 공개 메소드

public GetBytes ( byte data ) : void
data byte
리턴 void
		public override void GetBytes (byte[] data) 
		{
			if (data == null)
				throw new ArgumentNullException ("data");

			if (_lock == null) {
				_handle = RngGetBytes (_handle, data);
			} else {
				// using a global handle for randomness
				lock (_lock) {
					_handle = RngGetBytes (_handle, data);
				}
			}
			Check ();
		}