RFC: RNG fixes and changes

Project Governance
Author
Target
7.1
There are several long standing issues with random number generation that should be addressed:

Mailing List Discussions


Fix mt_rand() implementation

Overall Results

Yes
No
Yes
19 Votes (79%)
No
5 Votes (21%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Alias rand() to mt_rand()

Overall Results

Yes
No
Yes
21 Votes (84%)
No
4 Votes (16%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Fix RAND_RANGE()

Overall Results

Yes
No
Yes
25 Votes (100%)
No
0 Votes (0%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Replace insecure uses of php_rand() with php_random_bytes()

Overall Results

Yes
No
Yes
23 Votes (100%)
No
0 Votes (0%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Make array_rand() more efficient

Overall Results

Yes
No
Yes
24 Votes (100%)
No
0 Votes (0%)

Voting Timeline

Dates based on UTC

Voting Breakdown