Use a predetermined default password length field
This commit is contained in:
@@ -4,7 +4,8 @@ namespace Common;
|
||||
public static class PasswordGenerator
|
||||
{
|
||||
public static Error? ExceptionOccured;
|
||||
private static string RandomStr(int length, bool no_symbols = false)
|
||||
public static int DEFAULT_LENGTH = 16;
|
||||
private static string RandomStr(int length = 16, bool no_symbols = false)
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
Random rnd = new Random();
|
||||
|
||||
Reference in New Issue
Block a user