We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6c172 commit 56ebfa1Copy full SHA for 56ebfa1
ext/random/random.c
@@ -1481,7 +1481,7 @@ PHP_METHOD(Random_Engine_XorShift128Plus, __construct)
1481
} else {
1482
if (str_seed) {
1483
/* char (8 bit) * 16 = 128 bits */
1484
- if (str_seed->len == 16) {
+ if (ZSTR_LEN(str_seed) == 16) {
1485
/* Endianness safe copy */
1486
for (i = 0; i < 2; i++) {
1487
state->s[i] = 0;
@@ -1551,7 +1551,7 @@ PHP_METHOD(Random_Engine_Xoshiro256StarStar, __construct)
1551
1552
1553
/* char (8 bit) * 32 = 256 bits */
1554
- if (str_seed->len == 32) {
+ if (ZSTR_LEN(str_seed) == 32) {
1555
1556
for (i = 0; i < 4; i++) {
1557
0 commit comments