Skip to content

Conversation

@TysonAndre
Copy link
Contributor

random_int() will throw for incorrect argument counts, types (e.g. float
that can't cast to int), or having min > max.

See ext/standard/random.c

I added random_bytes() earlier but missed this.

random_int() will throw for incorrect argument counts, types (e.g. float
that can't cast to int), or having min > max.

See ext/standard/random.c
@nikic
Copy link
Member

nikic commented Sep 9, 2019

Merged as 3e89e9a.

@nikic nikic closed this Sep 9, 2019
@TysonAndre TysonAndre deleted the opcache-random_int branch October 7, 2019 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants