Update of /cvsroot/freenet/freenet/src/freenet/node/states/announcement In directory sc8-pr-cvs1:/tmp/cvs-serv5586/src/freenet/node/states/announcement
Modified Files: NewAnnouncement.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: NewAnnouncement.java =================================================================== RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/announcement/NewAnnouncement.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -r1.13 -r1.14 --- NewAnnouncement.java 17 Oct 2003 23:02:01 -0000 1.13 +++ NewAnnouncement.java 27 Oct 2003 14:45:17 -0000 1.14 @@ -117,7 +117,7 @@ } // Our random commit value myVal = new byte[20]; - n.randSource.nextBytes(myVal); + n.getRandSource().nextBytes(myVal); // update commitVal synchronized (ctx) { @@ -157,7 +157,7 @@ if (routes == null) { // first time // Route. No sense in taking too much entropy. (And this way // I can test Tavin's routing table :-) ). - long l = n.randSource.nextLong(); + long l = n.getRandSource().nextLong(); Key k = new Key(new byte[] { (byte) l, (byte) (l >> 8), (byte) (l >> 16), (byte) (l >> 24), (byte) (l >> 32), (byte) (l >> 40), _______________________________________________ cvs mailing list [EMAIL PROTECTED] http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs