mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

The CSPRNG is a delicate and security relevant piece of code and having it in the giant random.c makes it much harder to verify changes to it. Split it into a separate file.
4 lines
381 B
Text
4 lines
381 B
Text
EXTENSION("random", "random.c", false /* never shared */, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
|
|
PHP_RANDOM="yes";
|
|
ADD_SOURCES(configure_module_dirname, "csprng.c engine_combinedlcg.c engine_mt19937.c engine_pcgoneseq128xslrr64.c engine_xoshiro256starstar.c engine_secure.c engine_user.c gammasection.c randomizer.c", "random");
|
|
PHP_INSTALL_HEADERS("ext/random", "php_random.h");
|