Skip to content

Commit 8fa1c0e

Browse files
committed
Better internal name
1 parent 62e2df7 commit 8fa1c0e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public class CircularBufferInputStreamTest {
3333
/**
3434
* System.currentTimeMillis(), when this test was written. Always using the same seed should ensure a reproducible test.
3535
*/
36-
private final Random rnd = new Random(1530960934483L);
36+
private final Random random = new Random(1530960934483L);
3737

3838
/**
3939
* Create a large, but random input buffer.
4040
*/
4141
private byte[] newInputBuffer() {
42-
final byte[] buffer = new byte[16 * 512 + rnd.nextInt(512)];
43-
rnd.nextBytes(buffer);
42+
final byte[] buffer = new byte[16 * 512 + random.nextInt(512)];
43+
random.nextBytes(buffer);
4444
return buffer;
4545
}
4646

@@ -68,7 +68,7 @@ public void testRandomRead() throws Exception {
6868
int offset = 0;
6969
final byte[] readBuffer = new byte[256];
7070
while (offset < bufferCopy.length) {
71-
switch (rnd.nextInt(2)) {
71+
switch (random.nextInt(2)) {
7272
case 0: {
7373
final int res = cbis.read();
7474
if (res == -1) {
@@ -81,7 +81,7 @@ public void testRandomRead() throws Exception {
8181
break;
8282
}
8383
case 1: {
84-
final int res = cbis.read(readBuffer, 0, rnd.nextInt(readBuffer.length + 1));
84+
final int res = cbis.read(readBuffer, 0, random.nextInt(readBuffer.length + 1));
8585
if (res == -1) {
8686
throw new IllegalStateException("Unexpected EOF at offset " + offset);
8787
}

0 commit comments

Comments
 (0)