Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Both the <em>Random</em> and the <em>RandomNumberGenerator</em> classes are basically <em>pseudo-random number generators</em> and as they are based on algorithms, there is a limit as to how random their outputs can be. </p> <p>But when compared to the <em>Random</em>, the <em>RandomNumberGenerator</em> class is considered as a <em>Cryptographically secure pseudorandom number generator</em> as it makes use of a quite a few other environmental parameters (http://en.wikipedia.org/wiki/CryptGenRandom) for ensuring randomness. Some of the parameters are:</p> <ul> <li>The current process ID</li> <li>The current thread ID </li> <li>The tick count since boot time</li> <li>The current time</li> <li>Various high-precision performance counters</li> <li>An MD4 hash of the user's environment block</li> <li>High-precision internal CPU counters</li> </ul> <p>Do go through the following link which is an interesting read regarding randomness: <a href="http://www.codinghorror.com/blog/2006/11/computers-are-lousy-random-number-generators.html" rel="nofollow">http://www.codinghorror.com/blog/2006/11/computers-are-lousy-random-number-generators.html</a> </p> <hr> <p>For the purpose normal usage scenarios such as generating passwords as in your case, the use of the <em>RandomNumberGenerator</em> class is more than enough (http://msdn.microsoft.com/en-us/library/system.random.aspx):</p> <p><em>"To generate a cryptographically secure random number suitable for creating a random password, for example, use a class derived from System.Security.Cryptography.RandomNumberGenerator such as System.Security.Cryptography.RNGCryptoServiceProvider."</em></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload