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 ); } /**