Skip to content

Commit 8aaaea4

Browse files
committed
Moved random generator to Util.java
1 parent 0b7cfba commit 8aaaea4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/java/com/phikal/regex/Util.java

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import android.os.Vibrator;
77
import android.preference.PreferenceManager;
88

9+
import java.security.SecureRandom;
10+
import java.util.Random;
11+
912
public class Util {
1013
public static final String // preference names
1114
GAME_MODE = "game_",
@@ -20,6 +23,8 @@ public class Util {
2023
public static final String[]
2124
CHARS = {"[", "]", "(", ")", ".", "*", "+", "?", "^", "|", "{", "}", "-", "\\"};
2225

26+
public final static Random rnd = new SecureRandom();
27+
2328
private Util() {
2429
}
2530

0 commit comments

Comments
 (0)