-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
[BUG] v2.0.3 returns incorrect values for Int and UInt methods #164
Comments
@trentclowater thank you for reporting, I'll check this out. |
Did you find some time to take a look at this @jaswdr |
This seems to be already fixed by #165, unfortunately, it's not tagged/released yet. A quick workaround is to: go get -u github.com/jaswdr/faker/v2@ae23891d4c901b3603aad44fa0bba41cf0735f84 |
@edigaryev Note that #165 just reverts a fix for a panic that existed originally, so the potential for a panic is still there. The problems with |
@stephenafamo unfortunately I was not able to got to this. #165 is not released in any version yet because I was still testing it, although in the end we should revert it and re-apply the fix to mitigate the panic. The side effect is that previously the numbers where mostly between 0..100 and now they are much bigger, although this is not a bug I understand that it could break people's code. Fortunately there are many other methods that people can use instead, so my actions items are:
|
Released v2.1.0 with fix and tests to avoid this issue. Please @trentclowater check it out and feel free to reopen this issue if needed. |
Describe the bug
Changes made to
v2.0.3
seem to have broken the Int and Uint methods. The sample code in the Go Playground will generate the output below (10 random numbers for each method). OnlyUint()
appears to be working correctly.They appear to be working more correctly with
v2.0.2
(althoughInt64
andInt
do not appear to be producing any negative values withv2.0.2
):To Reproduce
See https://goplay.tools/snippet/6eRhDKSKzfW
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
go version
output: go version go1.21.6 darwin/arm64The text was updated successfully, but these errors were encountered: