Annotation of embedaddon/php/ext/openssl/tests/openssl_random_pseudo_bytes.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: openssl_random_pseudo_bytes() tests
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("openssl")) print "skip"; ?>
                      5: --FILE--
                      6: <?php
                      7: for ($i = 0; $i < 10; $i++) {
                      8:        var_dump(bin2hex(openssl_random_pseudo_bytes($i, $strong)));
                      9: }
                     10: 
                     11: ?>
                     12: --EXPECTF--
                     13: string(0) ""
                     14: string(2) "%s"
                     15: string(4) "%s"
                     16: string(6) "%s"
                     17: string(8) "%s"
                     18: string(10) "%s"
                     19: string(12) "%s"
                     20: string(14) "%s"
                     21: string(16) "%s"
                     22: string(18) "%s"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>