Related to Issue #23. According to the PHP documentation for mt_srand(), the MT_RAND_PHP mode uses an incorrect Mersenne Twister implementation, and it is now deprecated as of PHP 8.3.0.
The correct Mersenne Twister implementation caused the tests using it to fail, so past developers chose to use the old implementation to resolve issue #23. A better fix would be to have the tests expect the correct implementation so the deprecated constant can be removed.
The issue is mitigated by the fact that the deprecated constant is only used in tests (BaconQrCodeTest\Common\BitArrayTest and BaconQrCodeTest\Common\ReedSolomonCodecTest).
Related to Issue #23. According to the PHP documentation for mt_srand(), the MT_RAND_PHP mode uses an incorrect Mersenne Twister implementation, and it is now deprecated as of PHP 8.3.0.
The correct Mersenne Twister implementation caused the tests using it to fail, so past developers chose to use the old implementation to resolve issue #23. A better fix would be to have the tests expect the correct implementation so the deprecated constant can be removed.
The issue is mitigated by the fact that the deprecated constant is only used in tests (
BaconQrCodeTest\Common\BitArrayTest
andBaconQrCodeTest\Common\ReedSolomonCodecTest
).