예제 #1
0
 private byte[] getEntropy() {
   byte[] entropy = _entropySource.getEntropy();
   if (entropy.length < (_securityStrength + 7) / 8) {
     throw new IllegalStateException("Insufficient entropy provided by entropy source");
   }
   return entropy;
 }