Skip to content

Commit

Permalink
Refactor: ThreadLocalRandom to SecureRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
wonyongChoi05 committed May 17, 2023
1 parent 9d32713 commit 9360664
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toMap;

import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.concurrent.ThreadLocalRandom;
import java.util.function.Function;
import java.util.stream.Collectors;
import javax.persistence.EntityManager;
Expand Down Expand Up @@ -54,7 +54,7 @@
@Configuration
public class DataLoaderApplicationListener implements ApplicationListener<ContextRefreshedEvent> {

private static final Random random = ThreadLocalRandom.current();
private static final Random random = new SecureRandom();
private static final Logger logger = LoggerFactory.getLogger(DataLoaderApplicationListener.class);

private final EntityManagerFactory entityManagerFactory;
Expand Down

0 comments on commit 9360664

Please sign in to comment.