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

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

commit 8fa1c0efb7d3268bd73b23089fccba17e72bc24f
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jul 14 17:59:13 2024 -0400

    Better internal name
---
 .../commons/io/input/buffer/CircularBufferInputStreamTest.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java
 
b/src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java
index 7fe3e96c9..37e404d26 100644
--- 
a/src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java
@@ -33,14 +33,14 @@ public class CircularBufferInputStreamTest {
     /**
      * System.currentTimeMillis(), when this test was written. Always using 
the same seed should ensure a reproducible test.
      */
-    private final Random rnd = new Random(1530960934483L);
+    private final Random random = new Random(1530960934483L);
 
     /**
      * Create a large, but random input buffer.
      */
     private byte[] newInputBuffer() {
-        final byte[] buffer = new byte[16 * 512 + rnd.nextInt(512)];
-        rnd.nextBytes(buffer);
+        final byte[] buffer = new byte[16 * 512 + random.nextInt(512)];
+        random.nextBytes(buffer);
         return buffer;
     }
 
@@ -68,7 +68,7 @@ public class CircularBufferInputStreamTest {
         int offset = 0;
         final byte[] readBuffer = new byte[256];
         while (offset < bufferCopy.length) {
-            switch (rnd.nextInt(2)) {
+            switch (random.nextInt(2)) {
             case 0: {
                 final int res = cbis.read();
                 if (res == -1) {
@@ -81,7 +81,7 @@ public class CircularBufferInputStreamTest {
                 break;
             }
             case 1: {
-                final int res = cbis.read(readBuffer, 0, 
rnd.nextInt(readBuffer.length + 1));
+                final int res = cbis.read(readBuffer, 0, 
random.nextInt(readBuffer.length + 1));
                 if (res == -1) {
                     throw new IllegalStateException("Unexpected EOF at offset 
" + offset);
                 }

Reply via email to