commit | cc6b0c0b40499fb698730d94dc9c2d66f4176ebe | [log] [tgz] |
---|---|---|
author | aherbert <aherbert@apache.org> | Tue Mar 29 13:40:26 2022 +0100 |
committer | aherbert <aherbert@apache.org> | Tue Mar 29 13:40:26 2022 +0100 |
tree | 905325918444a9073ce69957ce0ed17490ded1a6 | |
parent | 3c4184b981d5eaf72b066aa0784795c41533308f [diff] |
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.
The Apache Commons RNG project provides pure-Java implementation of pseudo-random generators.
More information can be found on the Apache Commons RNG homepage. The Javadoc for each of the modules can be browsed:
Questions related to the usage of Apache Commons RNG should be posted to the user mailing list.
You can download source and binaries from our download page.
Alternatively you can pull it from the central Maven repositories, e.g.:
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-rng-simple</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-rng-sampling</artifactId> <version>1.4</version> </dependency>
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
mvn clean test
.If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
This code is under the Apache Licence v2.
See the NOTICE
file for required notices and attributions.
You like Apache Commons RNG? Then donate back to the ASF to support the development.
#apache-commons
IRC channel on irc.freenode.org