Skip to content

Commit

Permalink
[Fix][FakeSource] fix random from template not include the latest val…
Browse files Browse the repository at this point in the history
…ue issue (#6438)
  • Loading branch information
liunaijie authored Mar 6, 2024
1 parent a93de4c commit 6ec16ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public FakeDataRandomUtils(FakeConfig fakeConfig) {
}

private static <T> T randomFromList(List<T> list) {
int index = RandomUtils.nextInt(0, list.size() - 1);
int index = RandomUtils.nextInt(0, list.size());
return list.get(index);
}

Expand Down

0 comments on commit 6ec16ac

Please sign in to comment.