We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c3285 commit 0c8519fCopy full SHA for 0c8519f
sources/net.sf.j2s.java.core/src/java/nio/file/TempFileHelper.java
@@ -55,7 +55,7 @@ private TempFileHelper() { }
55
// file name generation, same as java.io.File for now
56
private static final SecureRandom random = new SecureRandom();
57
private static Path generatePath(String prefix, String suffix, Path dir) {
58
- long n = random.nextLong();
+ long n = random.nextInt();// was nextLong();
59
n = (n == Long.MIN_VALUE) ? 0 : Math.abs(n);
60
Path name = dir.getFileSystem().getPath(prefix + Long.toString(n) + suffix);
61
// the generated name should be a simple file name
0 commit comments