repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import zend mcrypt tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
bad
/
ext-mcrypt
/
bug55169.php
blob
06158305032ebd5aa2c6cff3a303b2f3aad84cbe
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
;
8
}
9
?
>