自动化立体仓库 - WMS系统
ZY
2025-04-28 44137e717170d9a9333e33a5237f3a468bd41113
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.zy.nc.util;
 
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
 
/**
 * @Describe
 * @Author lizhmf
 * @Date 2021/3/16 19:32
 * @Version 1.0
 */
public class SecureRandomProxy {
 
    public static SecureRandom getRandomInstance() {
        SecureRandom random = null;
        try {
            random = SecureRandom.getInstance("SHA1PRNG");
//                random = SecureRandom.getInstance("NativePRNG");
//                random = SecureRandom.getInstance("NativePRNGNonBlocking");
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }
 
        return random;
    }
}