Initial update to .net core 6 rc2, haven't run it yet
This commit is contained in:
@@ -55,7 +55,8 @@ namespace AyaNova.Util
|
||||
throw new ArgumentException("characterSet must not be empty", "characterSet");
|
||||
|
||||
var bytes = new byte[length * 8];
|
||||
new RNGCryptoServiceProvider().GetBytes(bytes);
|
||||
//new RNGCryptoServiceProvider().GetBytes(bytes);
|
||||
RandomNumberGenerator.Create().GetBytes(bytes);
|
||||
var result = new char[length];
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user