Generating cryptographically safe random numbers.
I saw the following article on CNN: Simple passwords no longer suffice (June 1, 2004) which reminded me of the RNGCryptoServiceProvider class.
Do you generate random numbers for cryptographic purposes?
If so, check that your code uses the System.Security.Cryptography.RNGCryptoServiceProvider class to generate random numbers, and not the Random class. The Random class does not generate truly random numbers that are not repeatable or predictable.
Quoted from: Improving Web Application Security: Threats and Countermeasures [Chapter 21 – Code Review]