Skip to content

Conversation

@liunaijie
Copy link
Member

Purpose of this pull request

fix the FakeSource template random won't take the latest value issue.

Now using RandomUtils.nextInt(0, list.size() -1) to get the random index, but the Random.nextInt(start, end) the end is not included. so the latest value never will take.
update the Random.nextInt(0, list.size())

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

@hailin0 hailin0 merged commit 6ec16ac into apache:dev Mar 6, 2024
@liunaijie liunaijie deleted the fakesource-fix branch March 6, 2024 05:15
chaorongzhi pushed a commit to chaorongzhi/seatunnel that referenced this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants