Correct longAsInt output in the stress test application 105/head
authoraherbert <aherbert@apache.org>
Tue, 29 Mar 2022 12:40:26 +0000 (13:40 +0100)
committeraherbert <aherbert@apache.org>
Tue, 29 Mar 2022 12:40:26 +0000 (13:40 +0100)
commitcc6b0c0b40499fb698730d94dc9c2d66f4176ebe
tree905325918444a9073ce69957ce0ed17490ded1a6
parent3c4184b981d5eaf72b066aa0784795c41533308f
Correct longAsInt output in the stress test application

RNG-171 changed the cached int source to output a long as two ints using
the low 32-bits, then high 32-bits.

Updated the RngDataOutput to support HiLo or LoHi. Added tests for each
implementation.

Dropped high-bits and low-bits command options. Added source64 option
with enum for high, low, high-Low, low-high, long, int. The default for
stress testing matches the caching implementation.

Update the test documentation to reflect the changes.
commons-rng-examples/examples-stress/endianness.md
commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/BridgeTestCommand.java
commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/OutputCommand.java
commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RNGUtils.java
commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RngDataOutput.java
commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/Source64Mode.java [new file with mode: 0644]
commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java
commons-rng-examples/examples-stress/src/test/java/org/apache/commons/rng/examples/stress/RNGUtilsTest.java [new file with mode: 0644]
commons-rng-examples/examples-stress/src/test/java/org/apache/commons/rng/examples/stress/RngDataOutputTest.java
commons-rng-examples/examples-stress/stress_test.md