forked from JavaTX/JavaCompilerCore
random with seed
This commit is contained in:
parent
0d5b515a47
commit
6c2d71d005
@ -11,6 +11,7 @@ public final class PlaceholderType extends UnifyType{
|
|||||||
|
|
||||||
protected static final HashSet<String> EXISTING_PLACEHOLDERS = new HashSet<String>();
|
protected static final HashSet<String> EXISTING_PLACEHOLDERS = new HashSet<String>();
|
||||||
protected static String nextName = "gen_";
|
protected static String nextName = "gen_";
|
||||||
|
protected static Random rnd = new Random(43558747548978L);
|
||||||
|
|
||||||
public PlaceholderType(String name) {
|
public PlaceholderType(String name) {
|
||||||
super(name);
|
super(name);
|
||||||
@ -30,7 +31,7 @@ public final class PlaceholderType extends UnifyType{
|
|||||||
* Returns random char between 'a' and 'z'
|
* Returns random char between 'a' and 'z'
|
||||||
*/
|
*/
|
||||||
private static char randomChar() {
|
private static char randomChar() {
|
||||||
return (char) (new Random().nextInt(22) + 97);
|
return (char) (rnd.nextInt(22) + 97);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user