I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 0bd75f0e authored by zzz's avatar zzz
Browse files

comment out mains

parent df3fc6e0
No related branches found
No related tags found
No related merge requests found
...@@ -168,6 +168,7 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl ...@@ -168,6 +168,7 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl
//System.out.println("Refilling " + (++refillCount) + " after " + diff + " for the PRNG took " + refillTime); //System.out.println("Refilling " + (++refillCount) + " after " + diff + " for the PRNG took " + refillTime);
} }
/*****
public static void main(String args[]) { public static void main(String args[]) {
try { try {
AsyncFortunaStandalone rand = new AsyncFortunaStandalone(null); // Will cause NPEs above; fix this if you want to test! Sorry... 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 ...@@ -195,4 +196,5 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl
} catch (Exception e) { e.printStackTrace(); } } catch (Exception e) { e.printStackTrace(); }
try { Thread.sleep(5*60*1000); } catch (InterruptedException ie) {} try { Thread.sleep(5*60*1000); } catch (InterruptedException ie) {}
} }
*****/
} }
...@@ -351,6 +351,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl ...@@ -351,6 +351,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl
} }
} }
/*****
public static void main(String args[]) { public static void main(String args[]) {
byte in[] = new byte[16]; byte in[] = new byte[16];
byte out[] = new byte[16]; byte out[] = new byte[16];
...@@ -379,7 +380,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl ...@@ -379,7 +380,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl
long after = System.currentTimeMillis(); long after = System.currentTimeMillis();
System.out.println("encrypting 4MB took " + (after-beforeAll)); System.out.println("encrypting 4MB took " + (after-beforeAll));
} catch (Exception e) { e.printStackTrace(); } } catch (Exception e) { e.printStackTrace(); }
/* ****/ /*
FortunaStandalone f = new FortunaStandalone(); FortunaStandalone f = new FortunaStandalone();
java.util.HashMap props = new java.util.HashMap(); java.util.HashMap props = new java.util.HashMap();
byte initSeed[] = new byte[1234]; byte initSeed[] = new byte[1234];
...@@ -394,5 +395,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl ...@@ -394,5 +395,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl
long time = System.currentTimeMillis() - before; long time = System.currentTimeMillis() - before;
System.out.println("512MB took " + time + ", or " + (8*64d)/((double)time/1000d) +"MBps"); System.out.println("512MB took " + time + ", or " + (8*64d)/((double)time/1000d) +"MBps");
*/ */
/*****
} }
*****/
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment