-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.x] Use secure randomness in Arr:random and Arr:shuffle (#46105)
* Use secure randomness in Arr:random and Arr:shuffle * Simplify random and shuffle algos * Fix function name * Prevent shuffle from preserving keys * Fix algo to better implementation (and fix broken test) * Fix increment style * Fix broken shuffle and make test useful * Keeping StyleCI happy
- Loading branch information
Showing
2 changed files
with
71 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters