removed eronius comment
[ga4php.git] / unittests / createkey.php
1 <?php
2 require_once("../lib/ga4php.php");
3
4 $ga = new GoogleAuthenticator("/dev/null");
5
6 echo "creating 10000 keys\n";
7 $oldkey = "";
8 for($i = 0; $i < 10000; $i++) {
9         $key = $ga->createBase32Key();
10         if($oldkey == $key) {
11                 echo "Two identical keys created";
12         }
13         $old = $key;
14 }
15
16 echo "Last key: $key\n";
17 ?>