随机数生成器 @param max @return
(BigInteger max)
| 66 | * @return |
| 67 | */ |
| 68 | private static BigInteger random(BigInteger max) { |
| 69 | BigInteger r = new BigInteger(256, random); |
| 70 | while (r.compareTo(max) >= 0) { |
| 71 | r = new BigInteger(128, random); |
| 72 | } |
| 73 | return r; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * 字节数组拼接 |
no outgoing calls
no test coverage detected