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 ce3a2bba5b7eb850a4d90e7ba9cf61c6f779255f Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun Apr 6 10:27:21 2025 -0400 Migrate test from deprecated code --- .../org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java b/src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java index 0687a8200..4b684621a 100644 --- a/src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java +++ b/src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java @@ -61,7 +61,7 @@ public void afterEach() { } private Path createTestFile(final int size) throws IOException { - return Files.write(Files.createTempFile(tempDir, null, null), RandomUtils.nextBytes(size)); + return Files.write(Files.createTempFile(tempDir, null, null), RandomUtils.insecure().nextBytes(size)); } private MemoryMappedFileInputStream newInputStream(final Path file) throws IOException {