6 Commits

Author SHA1 Message Date
Chris Hegarty
008fee0591 8079782: RandomFactory should be in the jdk.testlibrary package
Reviewed-by: bpb
2015-05-08 11:02:33 +01:00
Brian Burkhalter
30e8183ee8 8078672: Print and allow setting by Java property seeds used to initialize Random instances in java.lang numerics tests
Add ability to initial the random number generator from the system property "seed" and print to STDOUT the seed value actually used.

Reviewed-by: darcy
2015-04-29 16:34:49 -07:00
Joe Darcy
86c109e149 8078334: Mark regression tests using randomness
Reviewed-by: xuelei, alanb
2015-04-29 10:25:53 -07:00
Brian Burkhalter
f9a9e68c05 8074460: Always print seeds used in [Splittable]Random instances in java.math tests
Create a utility class which creates a pseudorandom number generator (PRNG) and retains the seed. Use this class in java.math tests which use a PRNG. Always print the seed value before the PRNG is used.

Reviewed-by: darcy
2015-03-06 16:00:58 -08:00
Brian Burkhalter
b84fa9d0f7 8042478: Include Mersenne primes in BigInteger primality testing
Add testing of some of the Mersenne primes.

Reviewed-by: darcy
2014-05-08 16:06:43 -07:00
Brian Burkhalter
b89a5598d4 8026236: Add PrimeTest for BigInteger
Test primality verification methods in BigInteger

Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: psandoz
2014-05-07 11:45:31 -07:00