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

## com.mindbright.util
Class Math

    java.lang.Object
      com.mindbright.util.Math

public final class Math
extends java.lang.Object

Some advanced utility math functions.

Constructor Summary
`Math()`

Method Summary
`static java.math.BigInteger` | `findRandomGenerator(java.math.BigInteger order, java.math.BigInteger modulo, SecureRandom random)` Create a random generator suitable for DSA key generation
`static java.math.BigInteger[]` | `findRandomStrongPrime(int primeBits, int orderBits, SecureRandom random)` Find a random cryptographically secure prime number of the specified size.

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

Constructor Detail

### Math

    public Math()

Method Detail

### findRandomGenerator

    public static java.math.BigInteger findRandomGenerator(java.math.BigInteger order,
                                                           java.math.BigInteger modulo,
                                                           SecureRandom random)

  Create a random generator suitable for DSA key generation

### findRandomStrongPrime

    public static java.math.BigInteger[] findRandomStrongPrime(int primeBits,
                                                               int orderBits,
                                                               SecureRandom random)

  Find a random cryptographically secure prime number of the specified size.

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