diff --git a/core/java/src/gnu/crypto/prng/AsyncFortunaStandalone.java b/core/java/src/gnu/crypto/prng/AsyncFortunaStandalone.java index c37ada8bcfa27f11c1b9eba199ecb8906e95b227..849090f458482eaa788a9e86b2cf83da17d3748b 100644 --- a/core/java/src/gnu/crypto/prng/AsyncFortunaStandalone.java +++ b/core/java/src/gnu/crypto/prng/AsyncFortunaStandalone.java @@ -168,6 +168,7 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl //System.out.println("Refilling " + (++refillCount) + " after " + diff + " for the PRNG took " + refillTime); } +/***** public static void main(String args[]) { try { AsyncFortunaStandalone rand = new AsyncFortunaStandalone(null); // Will cause NPEs above; fix this if you want to test! Sorry... @@ -195,4 +196,5 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl } catch (Exception e) { e.printStackTrace(); } try { Thread.sleep(5*60*1000); } catch (InterruptedException ie) {} } +*****/ } diff --git a/core/java/src/gnu/crypto/prng/FortunaStandalone.java b/core/java/src/gnu/crypto/prng/FortunaStandalone.java index 0ba10c6ab7454f0f73f8ef4416a4981ee1a7f9b3..909e59ee2d08173dc0ab25815e0e3246a41892f8 100644 --- a/core/java/src/gnu/crypto/prng/FortunaStandalone.java +++ b/core/java/src/gnu/crypto/prng/FortunaStandalone.java @@ -351,6 +351,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl } } +/***** public static void main(String args[]) { byte in[] = new byte[16]; byte out[] = new byte[16]; @@ -379,7 +380,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl long after = System.currentTimeMillis(); System.out.println("encrypting 4MB took " + (after-beforeAll)); } catch (Exception e) { e.printStackTrace(); } - /* +****/ /* FortunaStandalone f = new FortunaStandalone(); java.util.HashMap props = new java.util.HashMap(); byte initSeed[] = new byte[1234]; @@ -394,5 +395,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl long time = System.currentTimeMillis() - before; System.out.println("512MB took " + time + ", or " + (8*64d)/((double)time/1000d) +"MBps"); */ +/***** } +*****/ }