mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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 to45f8cfaf10
,2b30f18708
, andb14dd85dca
.
This commit is contained in:
parent
77bc863e50
commit
97b3b4552d
17 changed files with 64 additions and 28 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue