r26603 - trunk/freenet/src/freenet/crypt

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-07 15:04:51 +0000 (Tue, 07 Apr 2009)
New Revision: 26603

Modified:
   trunk/freenet/src/freenet/crypt/Yarrow.java
Log:
Just clear the hashtable

We are in synchronized{}, this have to be very fast

Modified: trunk/freenet/src/freenet/crypt/Yarrow.java
===================================================================
--- trunk/freenet/src/freenet/crypt/Yarrow.java	2009-04-07 15:04:29 UTC (rev 26602)
+++ trunk/freenet/src/freenet/crypt/Yarrow.java	2009-04-07 15:04:51 UTC (rev 26603)
@@ -660,9 +660,7 @@
 		fast_pool_reseed();
 		slow_entropy = 0;
 
-		Integer ZERO = 0;
-		for(EntropySource src : entropySeen.keySet())
-			entropySeen.put(src, ZERO);
+		entropySeen.clear();
 	}
 	/**
 	 * 5.4 Reseed Control parameters
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.