Update of /cvsroot/freenet/freenet/src/freenet/fs/dir
In directory sc8-pr-cvs1:/tmp/cvs-serv5586/src/freenet/fs/dir
Modified Files:
NativeFSDirectory.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: NativeFSDirectory.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/fs/dir/NativeFSDirectory.java,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -w -r1.165 -r1.166
--- NativeFSDirectory.java 21 Oct 2003 01:52:36 -0000 1.165
+++ NativeFSDirectory.java 27 Oct 2003 14:45:18 -0000 1.166
@@ -1126,7 +1126,7 @@
*/
public File getTempFile(FileNumber fn)
{
- return getTempFile(fn, Core.randSource.nextLong());
+ return getTempFile(fn, Core.getRandSource().nextLong());
}
public File getTempFile(FileNumber fn, long rand)
@@ -1640,7 +1640,7 @@
protected void verifyList(boolean force) {
//Core.logger.log(this, "Verifying LRU list", Logger.DEBUG);
if(!force) {
- if(verifyMode != ALWAYS && Core.randSource.nextInt() != 1) return;
+ if(verifyMode != ALWAYS && Core.getRandSource().nextInt() != 1) return;
if(verifyMode == NEVER) return;
}
NativeBuffer b = leastRecentlyUsed;
@@ -1877,7 +1877,7 @@
}
else {
status = TEMPORARY;
- tempRand = Core.randSource.nextLong();
+ tempRand = Core.getRandSource().nextLong();
}
File f = getFile();
// if(logDEBUG)
@@ -2356,7 +2356,7 @@
raf.close();
}
File f = getFile();
- tempRand = Core.randSource.nextLong();
+ tempRand = Core.getRandSource().nextLong();
File g = getTempFile(fn, tempRand);
try {
if(!f.renameTo(g)) {
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs