Skip to content

Commit d528fb5

Browse files
committed
Migrate test from deprecated code
1 parent bf503a3 commit d528fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void afterEach() {
6161
}
6262

6363
private Path createTestFile(final int size) throws IOException {
64-
return Files.write(Files.createTempFile(tempDir, null, null), RandomUtils.insecure().nextBytes(size));
64+
return Files.write(Files.createTempFile(tempDir, null, null), RandomUtils.insecure().randomBytes(size));
6565
}
6666

6767
private MemoryMappedFileInputStream newInputStream(final Path file) throws IOException {

0 commit comments

Comments
 (0)