-
Notifications
You must be signed in to change notification settings - Fork 232
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
IntegerRangeRandomizer does not generate random values in the given range #241
Comments
Hi,
Yes, here is an example of how to do that: EnhancedRandom enhancedRandom = EnhancedRandomBuilder.aNewEnhancedRandomBuilder()
.randomize(Integer.class, new IntegerRangeRandomizer(0, 100))
.build(); Kind regards |
I am getting back negative values.Drilled down the code. void populateField(final Object target, final Field field, final PopulatorContext context) throws IllegalAccessException { |
Hi, Thank you for reporting this issue! Indeed, this is a bug in random beans. Kind regards |
Hi, I've deployed version 3.6.0-SNAPSHOT to maven central with a fix for this issue. Kind regards |
Any update on this? |
No updates, so I'm closing this issue. @ysimhadri In case of any problem, you can reopen this issue and it will be addressed in next version |
Hi. The bug still exists in 3.7.0 for Long |
@driversti The fix for this issue (75318b0) covers the Can you please give it a try (see here on how to use the snapshot version) and let me know if you still have the issue? Thank you upfront! |
Thank you for taking time to open this issue 😄
Please provide as much context as possible to help us fixing the issue (at least random-beans version you are using).
Many thanks upfront!
The text was updated successfully, but these errors were encountered: