|
@ -275,10 +275,9 @@ public class BaseJpaService<T, R> {
|
|
|
StringBuffer buffer = new StringBuffer();
|
|
|
Random random = new Random();
|
|
|
for (int i = 0; i < length; i++) {
|
|
|
int number = random.nextInt(str.length() - 1);//0~61
|
|
|
int number = random.nextInt(str.length());//0~61
|
|
|
buffer.append(str.charAt(number));
|
|
|
}
|
|
|
return buffer.toString();
|
|
|
}
|
|
|
|
|
|
}
|