BgEngine.Infraestructure.Security.CodeFirstCrypto.GenerateSaltInternal C# (CSharp) Method

GenerateSaltInternal() private method

private GenerateSaltInternal ( int byteLength = SALT_SIZE ) : byte[]
byteLength int
return byte[]
        internal static byte[] GenerateSaltInternal(int byteLength = SALT_SIZE)
        {
            byte[] buf = new byte[byteLength];
            using (var rng = new RNGCryptoServiceProvider())
            {
                rng.GetBytes(buf);
            }
            return buf;
        }