|
@@ -20,15 +20,15 @@ public abstract class RandomBuildCode extends BuildCode {
|
|
/**
|
|
/**
|
|
* SecureRandom is preferred to Random
|
|
* SecureRandom is preferred to Random
|
|
*/
|
|
*/
|
|
- private static Random rand;
|
|
|
|
|
|
+ private static Random rand = new Random();
|
|
|
|
|
|
- static {
|
|
|
|
- try {
|
|
|
|
- rand = getInstanceStrong();
|
|
|
|
- } catch (NoSuchAlgorithmException e) {
|
|
|
|
- throw new BusinessException(404,"初始化随机数生成方法异常");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// static {
|
|
|
|
+// try {
|
|
|
|
+// rand = getInstanceStrong();
|
|
|
|
+// } catch (NoSuchAlgorithmException e) {
|
|
|
|
+// throw new BusinessException(404,"初始化随机数生成方法异常");
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|