This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git


The following commit(s) were added to refs/heads/master by this push:
     new dfb25fd  Removed reverse bytes from stress test code.
dfb25fd is described below

commit dfb25fd78c12dc7b677eba0fd23b10db31180178
Author: aherbert <[email protected]>
AuthorDate: Tue Mar 19 11:09:35 2019 +0000

    Removed reverse bytes from stress test code.
    
    Endianness should be corrected using a run-time option.
---
 .../java/org/apache/commons/rng/examples/stress/RandomStressTester.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RandomStressTester.java
 
b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RandomStressTester.java
index d0ac345..c994e33 100644
--- 
a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RandomStressTester.java
+++ 
b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RandomStressTester.java
@@ -226,7 +226,7 @@ public class RandomStressTester {
 
                 try {
                     while (true) {
-                        sink.writeInt(Integer.reverseBytes(rng.nextInt()));
+                        sink.writeInt(rng.nextInt());
                     }
                 } catch (IOException e) {
                     // Hopefully getting here when the analyzing software 
terminates.

Reply via email to