Author: nextgens
Date: 2007-12-17 00:53:30 +0000 (Mon, 17 Dec 2007)
New Revision: 16643

Modified:
   trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
TestDDA: use the node's RNG instead of a newly instanciated one

Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java        
2007-12-17 00:50:23 UTC (rev 16642)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java        
2007-12-17 00:53:30 UTC (rev 16643)
@@ -377,7 +377,7 @@
                if(job != null)
                        throw new IllegalArgumentException("There is already a 
TestDDA going on for that directory!");

-               File writeFile = (write ? new File(path, "DDACheck-" + new 
Random().nextInt() + ".tmp") : null);
+               File writeFile = (write ? new File(path, "DDACheck-" + 
server.node.fastWeakRandom.nextInt() + ".tmp") : null);
                File readFile = null;
                if(read) {
                        try {


Reply via email to