Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.crypto.prng
Class EntropyUtil

    java.lang.Object
      org.bouncycastle.crypto.prng.EntropyUtil

public class EntropyUtil
extends java.lang.Object

Utility methods for making use of EntropySources.

Constructor Summary
`EntropyUtil()`

Method Summary
`static byte[]` | `generateSeed(EntropySource entropySource, int numBytes)` Generate numBytes worth of entropy from the passed in entropy source.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### EntropyUtil

    public EntropyUtil()

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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD