Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 22, 2016
1 parent dcb0dd9 commit 86e30ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,8 @@ public function shuffle($seed = null)
shuffle($items);
} else {
srand($seed);
usort($items, function ($a, $b) {

usort($items, function () {
return rand(-1, 1);
});
}
Expand Down

0 comments on commit 86e30ba

Please sign in to comment.