Skip to content

Commit

Permalink
fix generator
Browse files Browse the repository at this point in the history
  • Loading branch information
s39f4lt committed Jan 5, 2021
1 parent 8cc5097 commit 0a51105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/src/main/java/org/example/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ private static void createOtherData(List<User> users) {
String jwt = authorize(user.getUsername(), user.getPassword());
Set<Integer> likeSet = new HashSet<>();
for (int likeCount = 0; likeCount < 15; likeCount++) {
int randomLike = random(users.size() - 1, 0);
int randomLike = random(users.size() - 1, 1);
likeSet.add(randomLike);
}
likeSet.forEach(like -> createLike(user.getId(), like, jwt));

for (int guestCount = 0; guestCount < 15; guestCount++) {
int randomGuest = random(users.size() - 1, 0);
int randomGuest = random(users.size() - 1, 1);
createGuest(user.getId(), randomGuest, jwt);
}

Expand Down

0 comments on commit 0a51105

Please sign in to comment.