mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-11 03:13:32 +00:00
updated Random() to SecureRandom() (#1670)
* updated Random() to SecureRandom() * batch 2 of SecureRandom updates
This commit is contained in:
1 parent
c150871a94
commit
b423002e6c
15 files changed
+32
-31
No files matched your search
@@ -23,7 +23,7 @@
|
||||
|
||||
package com.iluwatar.producer.consumer;
|
||||
|
||||
import java.util.Random;
|
||||
import java.security.SecureRandom;
|
||||
|
||||
/**
|
||||
* Class responsible for producing unit of work that can be expressed as {@link Item} and submitted
|
||||
@@ -31,7 +31,7 @@ import java.util.Random;
|
||||
*/
|
||||
public class Producer {
|
||||
|
||||
private static final Random RANDOM = new Random();
|
||||
private static final SecureRandom RANDOM = new SecureRandom();
|
||||
|
||||
private final ItemQueue queue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user