Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Random::Formatter#phrase #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

nobu
Copy link
Member

@nobu nobu commented Aug 24, 2021

The method generates a random pass phrase.

@nobu nobu force-pushed the random-phrase branch 2 times, most recently from ca1f77d to 30b7397 Compare December 6, 2021 07:25
PUNCT = %w[! - + / . ^ ~].freeze

# Default excluded characters for #phrase
EXCLUDE = %w"0 O o 1 l".freeze

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Is there a specific style reason to have another %w list delimiter for EXCLUDE than what PUNCT is using?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course nothing ;)

@nobu
Copy link
Member Author

nobu commented Jan 3, 2024

It may be nice if this method accepts chars:, like as Random::Formatter#alphanumeric.

@jjb jjb mentioned this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants