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 Faker.String.hexadecimal/1 #339

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

Conversation

ilyashuma
Copy link

This change introduces Faker.String.hexadecimal/0 and Faker.String.hexadecimal/1 for a generation of random hexadecimal strings of a given length.

I've added:

- [ ] USAGE.md docs if applicable

  • CHANGELOG.md

@ilyashuma ilyashuma closed this May 12, 2020
@ilyashuma ilyashuma reopened this May 12, 2020
@anthonator
Copy link
Collaborator

This should probably be under Faker.Number.hexadecimal/1.

@anthonator
Copy link
Collaborator

anthonator commented Aug 7, 2020

@ilyashuma would you mind placing this under Faker.Number?

@doc """
Returns a random hexadecimal String
## Examples
iex> Faker.String.hexadecimal()
Copy link
Member

Choose a reason for hiding this comment

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

Even though it returns a String, hexadecimal is a number according to its definition.

Suggested change
iex> Faker.String.hexadecimal()
iex> Faker.Number.hexadecimal()

Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants