mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
0cfc45b667
* random: Add `max_offset` local to Randomizer::getBytesFromString() * random: Use branchless implementation for mask generation in Randomizer::getBytesFromString() This was benchmarked against clzl with a standalone script with random inputs and is slightly faster. clzl requires an additional branch to handle the source_length = 1 / max_offset = 0 case. * Improve comment for masking in Randomizer::getBytesFromString() |
||
---|---|---|
.. | ||
01_functions | ||
02_engine | ||
03_randomizer | ||
engines.inc |