RNGCryptoServiceProvider
命名空间: System.Security.Cryptography
程序集: mscorlib(位于 mscorlib.dll)
关于伪随机数,请参见:到底要不要用伪随机数?
微软有自带产生密码的(System.Web.Security.Membership.GeneratePassword),当然也是用到了随机数,它是怎样的呢?其源代码如下: