Package org.bouncycastle.crypto.prng
Class EntropyUtil
java.lang.Object
org.bouncycastle.crypto.prng.EntropyUtil
Utility methods for making use of EntropySources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
generateSeed
(EntropySource entropySource, int numBytes) Generate numBytes worth of entropy from the passed in entropy source.
-
Constructor Details
-
EntropyUtil
public EntropyUtil()
-
-
Method Details
-
generateSeed
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.
-