Esempio n. 1
0
 public static int GetInt32(int length)
 {
     using var rngService = new RNGCryptoServiceProvider();
     return(NumberGenerator.GenerateUniqueInt32(rngService, length));
 }
Esempio n. 2
0
 public static int GetInt32(this RNGCryptoServiceProvider rngService, int length) => NumberGenerator.GenerateUniqueInt32(rngService, length);