mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
6fb20cd9de
As all the input bits and pieces are mixed with SHA-1, cross-architecture compatibility is not required and we can just mix in whatever they may look like in memory, instead of going through the `write_*()` helpers that were created for a previous in-development version that first filled a buffer that was then hashed (allowing for easy inspection of the input data, but making it harder to safely add values without checking for buffer overflows all the time). This change should also fix a build error on macOS ZTS: The thread ID is an opaque type and not guaranteed to be arithmetic as per IEEE Std 1003.1-2017. And indeed macOS defines it as a pointer to a structure, failing due to the implicit pointer to integer conversion. |
||
---|---|---|
.. | ||
tests | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
csprng.c | ||
engine_combinedlcg.c | ||
engine_mt19937.c | ||
engine_pcgoneseq128xslrr64.c | ||
engine_secure.c | ||
engine_user.c | ||
engine_xoshiro256starstar.c | ||
gammasection.c | ||
php_random_csprng.h | ||
php_random_uint128.h | ||
php_random.h | ||
random_arginfo.h | ||
random.c | ||
random.stub.php | ||
randomizer.c |