728x90
https://kdhyo98.tistory.com/48
[Java] Random보단 SecureRandom 를 사용하자.
🙄서론 Random을 사용하다가 소나큐브에서 Critical 버그가 발생했다. 그 후 알아본 내용을 정리해본다. 😉본론 - 에러 메세지 (번역은 구글번역을 통해 되었기 때문에 오역이 있을 수 있습니다..) "
kdhyo98.tistory.com
https://www.baeldung.com/java-generate-random-long-float-integer-double
public static long generatedRandomLongBounded(){
SecureRandom random = new SecureRandom();
return Math.abs(random.nextLong());
}
'Java' 카테고리의 다른 글
Spring Batch - Chunk 지향 프로세싱(Mybatis) (0) | 2024.07.17 |
---|---|
Pattern and Matcher (0) | 2024.07.16 |
MyBatisPagingItemReader with ExecutorType.Batch (0) | 2024.07.10 |
[MyBatis] Page with MyBatis (0) | 2024.07.01 |
[Spring Security] Public vs Private method to be applied Spring Security (1) | 2024.06.07 |