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

Fix length error of typia.random<T>() function. #891

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

samchon
Copy link
Owner

@samchon samchon commented Nov 29, 2023

When generating random string value from typia.random<T>() function with tags.MaxLength<1> tag, typia.random<T>() function had not returned the one length string value, but had returned the 5 length string. Such bug being repeated until configure the tags.MaxLength<5> over tag value.

This PR changes the invalid random length algorith, so that the bug has been fixed.

When generating random string value from `typia.random<T>()` function with `tags.MaxLength<1>` tag, `typia.random<T>()` function had not returned the one length string value, but had returned the 5 length string. Such bug being repeated until configure the `tags.MaxLength<5>` over value.

This PR changes the invalid random length algorith, so that the bug has been fixed.
@samchon samchon added bug Something isn't working enhancement New feature or request labels Nov 29, 2023
@samchon samchon self-assigned this Nov 29, 2023
@samchon samchon added this to In progress in V5 Update via automation Nov 29, 2023
Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

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

No problem on the test programs.

@samchon samchon merged commit 2067670 into master Nov 29, 2023
3 checks passed
V5 Update automation moved this from In progress to Done Nov 29, 2023
@samchon samchon deleted the features/random branch November 29, 2023 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant