[php-src] PR #13290: random: Move CSPRNG API into php_random_csprng.h
| From: | TimWolla | Date: | Wed, 31 Jan 2024 19:38:28 +0000 |
| Subject: | [php-src] PR #13290: random: Move CSPRNG API into php_random_csprng.h | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24942@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13290
Author: TimWolla
This allows consumers of just the CSPRNG to include a much smaller header. It also allows to verify
at a glance whether a source file might use non-secure randomness.
This commit includes the new header wherever the CSPRNG is used, possibly replacing the inclusion of
php_random.h if nothing else is used, but also includes it in the main php_random.h header for
compatibility.
Somewhat related to 45f8cfaf104f504340b0073b9736bb50a88d70a1,
2b30f18708b4f73d2c1d29d3a92a606ebdc5ac4c, and
b14dd85dca3b67a5462f5ed9b6aa0dc22beb615c.