import zend mcrypt tests
[hiphop-php.git] / hphp / test / zend / bad / ext-mcrypt / bug55169.php
blob06158305032ebd5aa2c6cff3a303b2f3aad84cbe
1 <?php
2 for( $i=1; $i<=64; $i = $i*2 ){
3 echo 'Input: '. $i . PHP_EOL;
4 $random = mcrypt_create_iv( $i, MCRYPT_DEV_URANDOM );
5 echo ' Length: ' . strlen( $random ) . PHP_EOL;
6 echo ' Hex: '. bin2hex( $random ) . PHP_EOL;
7 echo PHP_EOL;
9 ?>