【发布时间】:2012-03-09 21:01:14
【问题描述】:
我正在尝试使用 BigInteger 类的 probablePrime 方法生成一个随机素数。这是我正在尝试使用的 Lotus Notes 6.5 版代理。
import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.Random;
public class RSA{
public static BigInteger genPrimeNum(int bitlen, Random random){
return BigInteger.probablePrime(bitlen, random);
}
}
编译时出现错误提示在 BigInteger 类中找不到方法 probablePrime(int, java.util.Random)
请帮忙。
提前致谢!!
【问题讨论】:
标签: java lotus-notes biginteger