List of usage examples for org.apache.commons.crypto.random CryptoRandomFactory getCryptoRandom
public static CryptoRandom getCryptoRandom() throws GeneralSecurityException
From source file:de.siegmar.securetransfer.component.Cryptor.java
private CryptoRandom initRandom() { try {/*from ww w .java 2s .c o m*/ final CryptoRandom cryptoRandom = CryptoRandomFactory.getCryptoRandom(); LOG.info("Initialized {} for secure random generation", cryptoRandom.getClass()); return cryptoRandom; } catch (final GeneralSecurityException e) { throw new IllegalStateException(e); } }