From fd433176c78a48042e7a20c5f444f26d6c46d937 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 17 Jul 2015 15:35:53 +1000 Subject: [PATCH] Use better random sorting function --- includes/sp-formatting-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-formatting-functions.php b/includes/sp-formatting-functions.php index 36ae7ffb..c5299152 100644 --- a/includes/sp-formatting-functions.php +++ b/includes/sp-formatting-functions.php @@ -93,7 +93,7 @@ function sp_filter_non_empty( $var = '' ) { * @return bool */ function sp_sort_random() { - return rand() > rand(); + return mt_rand( 0, 1 ); } /**