static RandomUtils()
 {
     //Thread safe http://msdn.microsoft.com/en-us/library/system.security.cryptography.rngcryptoserviceprovider(v=vs.110).aspx
     Random = new RNGCryptoServiceProviderRandom();
     AddEntropy(Guid.NewGuid().ToByteArray());
 }
Exemplo n.º 2
0
		static RandomUtils()
		{
			//Thread safe http://msdn.microsoft.com/en-us/library/system.security.cryptography.rngcryptoserviceprovider(v=vs.110).aspx
			Random = new RNGCryptoServiceProviderRandom();
			AddEntropy(Guid.NewGuid().ToByteArray());
		}