java.io.Serializable
public class TestRandomBigInteger extends FixedSecureRandom
FixedSecureRandom.BigInteger, FixedSecureRandom.Data, FixedSecureRandom.Source
Constructor | Description |
---|---|
TestRandomBigInteger(byte[] encoding) |
Constructor based on a byte array.
|
TestRandomBigInteger(int bitLength,
byte[] encoding) |
Constructor which ensures encoding will produce a BigInteger from a request from the passed in bitLength.
|
TestRandomBigInteger(java.lang.String encoding) |
Constructor from a base 10 represention of a BigInteger.
|
TestRandomBigInteger(java.lang.String encoding,
int radix) |
Constructor from a base radix represention of a BigInteger.
|
generateSeed, isExhausted, nextBytes, nextInt, nextLong
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public TestRandomBigInteger(java.lang.String encoding)
encoding
- a base 10 represention of a BigInteger.public TestRandomBigInteger(java.lang.String encoding, int radix)
encoding
- a String BigInteger of base radix.radix
- the radix to use.public TestRandomBigInteger(byte[] encoding)
encoding
- a 2's complement representation of the BigInteger.public TestRandomBigInteger(int bitLength, byte[] encoding)
bitLength
- bit length for the BigInteger data request.encoding
- bytes making up the encoding.