Repository navigation
Fixed #476: Updated UUID source of randomness to random_bytes() - #675
Conversation
…dded mt_rand() as a fallback.
AI Agent Review LGTM (openai, openai-astra)LGTM. No blocking findings were found. LGTM, no defects found. PHP version. The minimum is 8.2 ( Test stub isolation. Design trade-off, not a defect. The Not verified here. No |
Description of the change
This fixes possible UUID collisions by improving the source of randomness for our UUID generation. It now uses
random_bytes()which uses an OS cryptographically random source.Because PHP will throw an exception if the runtime environment does not have a supported source of randomness, we have included a fallback to continue to relay on a simplified Mersenne Twister random number generator.
Type of change
Related issues
Checklists
Development
Code review