Skip to content

Commit aa0ca69

Browse files
committed
Fix random_int() checking size of wrong var.
1 parent e96b077 commit aa0ca69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ PHP_FUNCTION(random_int)
171171
RETURN_FALSE;
172172
}
173173

174-
size = sizeof(number);
174+
size = sizeof(max);
175175

176176
bytes = zend_string_alloc(size, 0);
177177

0 commit comments

Comments
 (0)