Use better random sorting function

This commit is contained in:
Brian Miyaji
2015-07-17 15:35:53 +10:00
parent 130a2815d9
commit fd433176c7

View File

@@ -93,7 +93,7 @@ function sp_filter_non_empty( $var = '' ) {
* @return bool
*/
function sp_sort_random() {
return rand() > rand();
return mt_rand( 0, 1 );
}
/**