Why use the C# class System.Random at all instead of System.Security.Cryptography.RandomNumberGenerator?

Speed and intent. If you’re generating a random number and have no need for security, why use a slow crypto function? You don’t need security, so why make someone else think that the number may be used for something secure when it won’t be?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)