public static void main (String[] args) throws java.security.NoSuchAlgorithmException {
		if (args.length < 1) {
			System.out.println("usage: java PeerID <number of tries>");
			return;
		}
		int runs = Integer.parseInt(args[0]);
		int i = runs;
		int totaltries = 0;
		System.out.printf("%6s, %4s, ", "tries", "ms");
		for (int b=0; b<19; b++) System.out.printf("%4s,", b);
		System.out.print("  20\n");
		long duration = System.currentTimeMillis();
		long trieduration;
		while (i-->0) {
			trieduration = System.currentTimeMillis();
			//int tries = PeerID.generateMagic();
			PeerID pid = PeerID.generateMagic();
			trieduration = System.currentTimeMillis() - trieduration;
			totaltries += pid.tries;
			System.out.printf("%6d, %4d, %4s\n", pid.tries, trieduration, pid.toCsvString());
		}
		duration = System.currentTimeMillis() - duration;
		/*System.out.printf("\n%d, %d, %f, %d\n",
			runs, totaltries, totaltries/(float)runs, duration);*/
	}