Update of /cvsroot/freenet/freenet/src/freenet/config
In directory sc8-pr-cvs1:/tmp/cvs-serv5586/src/freenet/config
Modified Files:
RandomPortOption.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: RandomPortOption.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/config/RandomPortOption.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- RandomPortOption.java 7 Jul 2002 22:08:22 -0000 1.1
+++ RandomPortOption.java 27 Oct 2003 14:45:19 -0000 1.2
@@ -31,7 +31,7 @@
boolean worked = false;
int i = 0;
do {
- port = 5001 + Math.abs(Core.randSource.nextInt()) % (65536 - 5001);
+ port = 5001 + Math.abs(Core.getRandSource().nextInt()) % (65536 - 5001);
try {
ServerSocket ss = new ServerSocket(port);
worked = true;
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs