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

refactor: Use datatype.number() function instead of random.number() #183

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

luciferreeves
Copy link
Contributor

@luciferreeves luciferreeves commented Jan 17, 2022

Use datatype.number() function to generate a number in src/internet.ts, instead of the deprecated random.number() function.

@netlify
Copy link

netlify bot commented Jan 17, 2022

✔️ Deploy Preview for vigilant-wescoff-04e480 ready!

🔨 Explore the source changes: c5c1489

🔍 Inspect the deploy log: https://app.netlify.com/sites/vigilant-wescoff-04e480/deploys/61e4c467525f4a0007f5f8cc

😎 Browse the preview: https://deploy-preview-183--vigilant-wescoff-04e480.netlify.app

@import-brain import-brain requested a review from a team January 17, 2022 01:58
@Shinigami92 Shinigami92 added the p: 1-normal Nothing urgent label Jan 17, 2022
@Shinigami92 Shinigami92 added this to the v6.1.0 milestone Jan 17, 2022
@Shinigami92
Copy link
Member

Oh, at first I thought this would change runtime behavior, because the seed could be different.
But:

  1. This function was changed anyway due to the image provider was changed to the IPFS one
  2. random.number just forwards the call to datetype.number

👍

@Shinigami92 Shinigami92 modified the milestones: v6.1.0, v6.0.0 Jan 17, 2022
@prisis prisis merged commit c0c913b into faker-js:main Jan 18, 2022
@luciferreeves luciferreeves deleted the avatar branch January 18, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants