summaryrefslogtreecommitdiff
path: root/lib/random/formatter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/random/formatter.rb')
-rw-r--r--lib/random/formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/random/formatter.rb b/lib/random/formatter.rb
index 2b5cf718ad..4ecd6ad027 100644
--- a/lib/random/formatter.rb
+++ b/lib/random/formatter.rb
@@ -340,7 +340,7 @@ module Random::Formatter
end
# The default character list for #alphanumeric.
- ALPHANUMERIC = [*'A'..'Z', *'a'..'z', *'0'..'9']
+ ALPHANUMERIC = [*'A'..'Z', *'a'..'z', *'0'..'9'].map(&:freeze).freeze
# Generate a random alphanumeric string.
#