Bug #3735

randomizeArrayOrder() does not randomize...

Added by Karsten Dambekalns about 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-06-23
Priority:Must have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Utility
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 2
PHP Version: Complexity:
Has patch: Affected Flow version:

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 order Resolved 2009-06-23

Associated revisions

Revision ce251246
Added by Karsten Dambekalns about 6 years ago

[-API] FLOW3 (Utility): removed randomizeArrayOrder(), use native shuffle() function instead, fixes #3735
[FIX] Testing: Tests are run in random order again, fixes #3734

History

#1 Updated by Karsten Dambekalns about 6 years ago

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

Applied in changeset r2639.

Also available in: Atom PDF