Bug #3735

randomizeArrayOrder() does not randomize...

Added by Karsten Dambekalns over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
Utility
Start date:
2009-06-23
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

randomizeArrayOrder() (added with r114) uses array_rand(), which does not randomize if as many "random" keys are requested as the source array contains. So, it's broken plus it is useless - use shuffle() instead.


Related issues

Related to Testing - Bug #3734: Tests are no longer run in random orderResolvedKarsten Dambekalns2009-06-23

Actions
#1

Updated by Karsten Dambekalns over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2639.

Also available in: Atom PDF