Skip to content

Commit

Permalink
revert takeRandom logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Aug 24, 2021
1 parent f7ce670 commit 5bf2a1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ public function boot(): void
/** @var \Illuminate\Database\Eloquent\Builder $this */

return $this
->orderByRaw('randomness <-> point(?, ?)', [
(random_int(PHP_INT_MIN, PHP_INT_MAX) / PHP_INT_MAX),
(random_int(PHP_INT_MIN, PHP_INT_MAX) / PHP_INT_MAX),
])
->inRandomOrder()
->limit($limit)
->get();
});
Expand Down

0 comments on commit 5bf2a1c

Please sign in to comment.