random: Move CSPRNG API into php_random_csprng.h (#13290)

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 45f8cfaf10,
2b30f18708, and
b14dd85dca.
This commit is contained in:
Tim Düsterhus 2024-02-01 19:09:35 +01:00 committed by GitHub
parent 77bc863e50
commit 97b3b4552d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 64 additions and 28 deletions

View file

@ -27,7 +27,7 @@
#include "php_reflection.h"
#include "ext/standard/info.h"
#include "ext/standard/sha1.h"
#include "ext/random/php_random.h"
#include "ext/random/php_random_csprng.h"
#include "zend.h"
#include "zend_API.h"