diff --git a/X10D/src/StringExtensions/StringExtensions.cs b/X10D/src/StringExtensions/StringExtensions.cs index 93bfd03..7bbfaad 100644 --- a/X10D/src/StringExtensions/StringExtensions.cs +++ b/X10D/src/StringExtensions/StringExtensions.cs @@ -251,34 +251,14 @@ namespace X10D /// /// The pool of characters to use. /// The length of the new string returned. + /// The supplier. /// /// A new string whose length is equal to which contains randomly selected characters from /// . /// /// is . /// is less than 0. - public static string Randomize(this string source, int length) - { - return source.Randomize(length, RandomExtensions.Random); - } - - /// - /// Returns a new string of a specified length by randomly selecting characters from the current string. - /// - /// The pool of characters to use. - /// The length of the new string returned. - /// The supplier. - /// - /// A new string whose length is equal to which contains randomly selected characters from - /// . - /// - /// - /// is . - /// -or- - /// is . - /// - /// is less than 0. - public static string Randomize(this string source, int length, Random random) + public static string Randomize(this string source, int length, Random? random = null) { if (source is null) {