diff --git a/lib/bizside/string_utils.rb b/lib/bizside/string_utils.rb index cdab307..c223938 100755 --- a/lib/bizside/string_utils.rb +++ b/lib/bizside/string_utils.rb @@ -9,7 +9,7 @@ def self.create_random_alpha_string length, case_sensitive = false chars += ('A'..'Z').to_a if case_sensitive chars_length = chars.length - length.times.map { chars[rand(chars_length)] }.join + Array.new(length) { chars[rand(chars_length)] }.join end def self.create_random_string(number)