xref: /PHP-8.1/ext/openssl/tests/bug78391.phpt (revision 74859783)
1--TEST--
2Bug #78391: Assertion failure in openssl_random_pseudo_bytes
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7
8$isStrongCrypto = false;
9var_dump(strlen(openssl_random_pseudo_bytes(16, $isStrongCrypto)));
10var_dump($isStrongCrypto);
11
12?>
13--EXPECT--
14int(16)
15bool(true)
16