Update of /cvsroot/freenet/freenet/src/freenet/node/states/request
In directory sc8-pr-cvs1:/tmp/cvs-serv5586/src/freenet/node/states/request

Modified Files:
        Pending.java InsertPending.java 
Log Message:
Work around problem with ThrottleAsyncEntropyYarrow/Yarrow initialization order.
Made randSource in Core private and started exposing it though a getter instead of 
directly.

Index: Pending.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/request/Pending.java,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -w -r1.77 -r1.78
--- Pending.java        24 Oct 2003 19:38:19 -0000      1.77
+++ Pending.java        27 Oct 2003 14:45:18 -0000      1.78
@@ -788,7 +788,7 @@
         // null means the initiator is not interested in seeing the 
         // data (e.g., KeyCollision response in FCP)
         
-       SendData sd = new SendData(n.randSource.nextLong(), this.id, out,
+       SendData sd = new SendData(n.getRandSource().nextLong(), this.id, out,
                                   doc, doc.length(), storables.getPartSize(), n);
        if(logDEBUG) n.logger.log(this, "Got SendData("+sd+") for "+this,
                                  Logger.DEBUG);

Index: InsertPending.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/request/InsertPending.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -w -r1.23 -r1.24
--- InsertPending.java  17 Oct 2003 23:02:01 -0000      1.23
+++ InsertPending.java  27 Oct 2003 14:45:18 -0000      1.24
@@ -384,7 +384,7 @@
            n.logger.log(this, "Relaying insert pending "+searchKey+
                         " without RAE for "+this, new Exception("debug"), 
                         Logger.DEBUG);
-        sendingData = new SendData(n.randSource.nextLong(), this.id, out, doc,
+        sendingData = new SendData(n.getRandSource().nextLong(), this.id, out, doc,
                                    doc.length(), 
                                   doc.getStorables().getPartSize(), n);
         sendingData.schedule(n);

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to