conor 2002/12/19 03:20:30 Modified: src/main/org/apache/tools/ant/util FileUtils.java Log: Make sure random component of names is always purely numeric - no negative signs PR: 15399 Submitted by: Rob Shafer Revision Changes Path 1.34 +7 -6 jakarta-ant/src/main/org/apache/tools/ant/util/FileUtils.java Index: FileUtils.java =================================================================== RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/util/FileUtils.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -w -u -r1.33 -r1.34 --- FileUtils.java 10 Dec 2002 16:38:26 -0000 1.33 +++ FileUtils.java 19 Dec 2002 11:20:29 -0000 1.34 @@ -706,7 +706,8 @@ synchronized (rand) { do { result = new File(parent, - prefix + fmt.format(rand.nextInt()) + prefix + + fmt.format(rand.nextInt(Integer.MAX_VALUE)) + suffix); } while (result.exists()); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>