代码扫描问题解决

This commit is contained in:
liulu
2025-01-14 17:26:50 +08:00
parent 334607a896
commit 3e1572dcad
49 changed files with 528 additions and 435 deletions
@@ -0,0 +1,23 @@
package com.sunyard.ssp.utils;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
/**
* @author liulu
* @since 2025/1/14
*/
public abstract class RandomUtils {
public static SecureRandom getRandom() {
try {
return SecureRandom.getInstance("SHA1PRNG");
} catch (NoSuchAlgorithmException e) {
throw new IllegalArgumentException(e);
}
}
}