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