Skip to content

Commit d983a0b

Browse files
zeriyoshiTimWolla
andcommitted
Update ext/random/random.c
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
1 parent 602981c commit d983a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/random/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ PHP_METHOD(Random_Engine_PCG64, __construct)
14071407
ZEND_PARSE_PARAMETERS_END();
14081408

14091409
if (seed_is_null) {
1410-
if (php_random_bytes_silent(&state->inc, sizeof(random_uint128_t)) == FAILURE) {
1410+
if (php_random_bytes_silent(&state->s, sizeof(random_uint128_t)) == FAILURE) {
14111411
zend_throw_exception(spl_ce_RuntimeException, "Random number generate failed", 0);
14121412
RETURN_THROWS();
14131413
}

0 commit comments

Comments
 (0)