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 602981c commit d983a0bCopy full SHA for d983a0b
ext/random/random.c
@@ -1407,7 +1407,7 @@ PHP_METHOD(Random_Engine_PCG64, __construct)
1407
ZEND_PARSE_PARAMETERS_END();
1408
1409
if (seed_is_null) {
1410
- if (php_random_bytes_silent(&state->inc, sizeof(random_uint128_t)) == FAILURE) {
+ if (php_random_bytes_silent(&state->s, sizeof(random_uint128_t)) == FAILURE) {
1411
zend_throw_exception(spl_ce_RuntimeException, "Random number generate failed", 0);
1412
RETURN_THROWS();
1413
}
0 commit comments