no cryptography random generator seed allowed in C#?
问题 It seems that there is no way to manually seed the RNGCryptoServiceProvider in C#. Is there really nothing simple I can do below to get repeatable randomBytes here for debugging? RNGCryptoServiceProvider rngCsp = new RNGCryptoServiceProvider(); byte[] randomBytes = new byte[20]; rngCsp.GetBytes(randomBytes); MessageBox.Show(Convert.ToBase64String(randomBytes)); I know that I could manually enter the 20 bytes, but this is a pain since I really need many more than 20. Also, I know that I could