Package org.bouncycastle.crypto.prng
Class EntropyUtil
- java.lang.Object
 - 
- org.bouncycastle.crypto.prng.EntropyUtil
 
 
- 
public class EntropyUtil extends java.lang.ObjectUtility methods for making use of EntropySources. 
- 
- 
Constructor Summary
Constructors Constructor Description EntropyUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]generateSeed(EntropySource entropySource, int numBytes)Generate numBytes worth of entropy from the passed in entropy source. 
 - 
 
- 
- 
Method Detail
- 
generateSeed
public static byte[] generateSeed(EntropySource entropySource, int numBytes)
Generate numBytes worth of entropy from the passed in entropy source.- Parameters:
 entropySource- the entropy source to request the data from.numBytes- the number of bytes of entropy requested.- Returns:
 - a byte array populated with the random data.
 
 
 - 
 
 -