summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/openssl_random_pseudo_bytes_basic.phpt
blob: 6adc78c797461e4544825c5bc2e3c965e7651191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
openssl_random_pseudo_bytes() tests
--SKIPIF--
<?php if (!extension_loaded("openssl")) print "skip"; ?>
--FILE--
<?php
for ($i = 1; $i < 10; $i++) {
    var_dump(bin2hex(openssl_random_pseudo_bytes($i)));
}
?>
--EXPECTF--
string(2) "%s"
string(4) "%s"
string(6) "%s"
string(8) "%s"
string(10) "%s"
string(12) "%s"
string(14) "%s"
string(16) "%s"
string(18) "%s"